Module: appdb Branch: master Commit: db6d9b5723c4c0e3bd4adaab1cc9a0c7086dfb8c URL: http://source.winehq.org/git/appdb.git/?a=commit;h=db6d9b5723c4c0e3bd4adaab1...
Author: Alexander Nicolaysen Sørnes alex@thehandofagony.com Date: Thu Aug 13 15:54:16 2009 +0200
objectManager: Only init filterInfo when needed
---
include/objectManager.php | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-)
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();