From 7e0b0798997b197d57d09ef5e690afdb1e6a2712 Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 29 Dec 2005 01:16:29 +0000 Subject: Changed module init() method signature. --- framework/Web/UI/TAssetManager.php | 4 +--- framework/Web/UI/TPageStatePersister.php | 3 +-- framework/Web/UI/TTemplateManager.php | 4 +--- framework/Web/UI/TThemeManager.php | 3 +-- 4 files changed, 4 insertions(+), 10 deletions(-) (limited to 'framework/Web/UI') diff --git a/framework/Web/UI/TAssetManager.php b/framework/Web/UI/TAssetManager.php index d15e4788..0cce2c27 100644 --- a/framework/Web/UI/TAssetManager.php +++ b/framework/Web/UI/TAssetManager.php @@ -73,10 +73,8 @@ class TAssetManager extends TModule * This method is required by IModule and is invoked by application. * @param TXmlElement module configuration */ - public function init($config=null) + public function init($config) { - parent::init($config); - $application=$this->getApplication(); if($this->_basePath===null) $this->_basePath=dirname($application->getRequest()->getPhysicalApplicationPath()).'/'.self::DEFAULT_BASEPATH; diff --git a/framework/Web/UI/TPageStatePersister.php b/framework/Web/UI/TPageStatePersister.php index 988a2938..9c9954de 100644 --- a/framework/Web/UI/TPageStatePersister.php +++ b/framework/Web/UI/TPageStatePersister.php @@ -9,9 +9,8 @@ class TPageStatePersister extends TModule implements IStatePersister * This method is required by IModule interface. * @param TXmlElement module configuration */ - public function init($config=null) + public function init($config) { - parent::init($config); $this->getService()->setPageStatePersister($this); } diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php index 544c346f..0187dfd9 100644 --- a/framework/Web/UI/TTemplateManager.php +++ b/framework/Web/UI/TTemplateManager.php @@ -44,10 +44,8 @@ class TTemplateManager extends TModule * It starts output buffer if it is enabled. * @param TXmlElement module configuration */ - public function init($config=null) + public function init($config) { - parent::init($config); - $this->getService()->setTemplateManager($this); } diff --git a/framework/Web/UI/TThemeManager.php b/framework/Web/UI/TThemeManager.php index 8c7f40a7..bbcd35a6 100644 --- a/framework/Web/UI/TThemeManager.php +++ b/framework/Web/UI/TThemeManager.php @@ -60,9 +60,8 @@ class TThemeManager extends TModule * This method is required by IModule and is invoked by application. * @param TXmlElement module configuration */ - public function init($config=null) + public function init($config) { - parent::init($config); $this->_initialized=true; $this->getService()->setThemeManager($this); } -- cgit v1.2.3