From 32dd060128dcbb4edfc14b8463f07d3cba23e931 Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 14 Nov 2005 00:30:08 +0000 Subject: Modified for theme support. --- framework/Web/Services/TPageService.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'framework/Web/Services/TPageService.php') diff --git a/framework/Web/Services/TPageService.php b/framework/Web/Services/TPageService.php index c4251a65..39dddd59 100644 --- a/framework/Web/Services/TPageService.php +++ b/framework/Web/Services/TPageService.php @@ -203,6 +203,14 @@ class TPageService extends TComponent implements IService return $this->_application->getModule('asset'); } + /** + * @return TThemeManager theme manager + */ + public function getThemeManager() + { + return $this->_application->getModule('theme'); + } + /** * @return boolean true if the pagepath is currently being requested, false otherwise */ @@ -371,7 +379,8 @@ class TPageConfiguration extends TComponent */ private $_modules=array( 'template'=>array('System.Web.UI.TTemplateManager',array(),null), - 'asset'=>array('System.Web.TAssetManager',array(),null) + 'asset'=>array('System.Web.TAssetManager',array(),null), + 'theme'=>array('System.Web.UI.TThemeManager',array(),null) ); /** * @var array list of parameters -- cgit v1.2.3