From db6d9b5723c4c0e3bd4adaab1cc9a0c7086dfb8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Thu, 13 Aug 2009 15:54:16 +0200 Subject: [PATCH] objectManager: Only init filterInfo when needed --- include/objectManager.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/objectManager.php b/include/objectManager.php index 182b373..e345020 100644 --- a/include/objectManager.php +++ b/include/objectManager.php @@ -64,8 +64,15 @@ class ObjectManager return $this->sState; } + private function initFilterInfo() + { + $this->oFilters = $this->getOptionalSetting('objectGetFilterInfo', FALSE); + } + public function getFilterInfoFromInput($aClean) { + $this->initFilterInfo(); + if($this->oFilters) $this->oFilters->readInput($aClean); } @@ -132,7 +139,7 @@ class ObjectManager $this->oMultiPage = new MultiPage(FALSE); $this->oTableRow = new OMTableRow(null); $this->sState = 'accepted'; - $this->oFilters = $this->getOptionalSetting('objectGetFilterInfo', FALSE); + $this->oFilters = null; // We only fill this when needed, as it can be quite slow // initialize the common responses array $this->aCommonResponses = array();