summaryrefslogtreecommitdiff
path: root/framework/Web/Services
diff options
context:
space:
mode:
authorxue <>2005-12-01 16:33:16 +0000
committerxue <>2005-12-01 16:33:16 +0000
commit9b334afcd805d57834ca6504873f5efbb02d47fd (patch)
tree635c69c1e08a27f132b7127a81bf113036c47c0e /framework/Web/Services
parent5d7149045a6fb6c40c0dbfb863e8b4fef3d9952f (diff)
Diffstat (limited to 'framework/Web/Services')
-rw-r--r--framework/Web/Services/TPageService.php27
1 files changed, 19 insertions, 8 deletions
diff --git a/framework/Web/Services/TPageService.php b/framework/Web/Services/TPageService.php
index 520c4187..6ef07d03 100644
--- a/framework/Web/Services/TPageService.php
+++ b/framework/Web/Services/TPageService.php
@@ -116,15 +116,15 @@ class TPageService extends TComponent implements IService
/**
* @var TAssetManager asset manager
*/
- private $_assetManager;
+ private $_assetManager=null;
/**
* @var TThemeManager theme manager
*/
- private $_themeManager;
+ private $_themeManager=null;
/**
* @var TTemplateManager template manager
*/
- private $_templateManager;
+ private $_templateManager=null;
/**
* Initializes the service.
@@ -253,6 +253,11 @@ class TPageService extends TComponent implements IService
*/
public function getTemplateManager()
{
+ if(!$this->_templateManager)
+ {
+ $this->_templateManager=new TTemplateManager;
+ $this->_templateManager->init($this->_application,null);
+ }
return $this->_templateManager;
}
@@ -269,6 +274,11 @@ class TPageService extends TComponent implements IService
*/
public function getAssetManager()
{
+ if(!$this->_assetManager)
+ {
+ $this->_assetManager=new TAssetManager;
+ $this->_assetManager->init($this->_application,null);
+ }
return $this->_assetManager;
}
@@ -285,6 +295,11 @@ class TPageService extends TComponent implements IService
*/
public function getThemeManager()
{
+ if(!$this->_themeManager)
+ {
+ $this->_themeManager=new TThemeManager;
+ $this->_themeManager->init($this->_application,null);
+ }
return $this->_themeManager;
}
@@ -430,11 +445,7 @@ class TPageConfiguration extends TComponent
/**
* @var array list of module configurations
*/
- private $_modules=array(
- 'template'=>array('TTemplateManager',array(),null),
- 'asset'=>array('TAssetManager',array(),null),
- 'theme'=>array('TThemeManager',array(),null)
- );
+ private $_modules=array();
/**
* @var array list of parameters
*/