summaryrefslogtreecommitdiff
path: root/framework/Web/UI
diff options
context:
space:
mode:
authorxue <>2005-12-29 01:16:29 +0000
committerxue <>2005-12-29 01:16:29 +0000
commit7e0b0798997b197d57d09ef5e690afdb1e6a2712 (patch)
tree4b4b0901508713d49ddead72324ae60c8b56f1de /framework/Web/UI
parentccdb91a35602377fe389c6c5b0945478929e0eca (diff)
Changed module init() method signature.
Diffstat (limited to 'framework/Web/UI')
-rw-r--r--framework/Web/UI/TAssetManager.php4
-rw-r--r--framework/Web/UI/TPageStatePersister.php3
-rw-r--r--framework/Web/UI/TTemplateManager.php4
-rw-r--r--framework/Web/UI/TThemeManager.php3
4 files changed, 4 insertions, 10 deletions
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);
}