From 3ddbcb8e4bf8667998d368b07dd2dac017122610 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 20 Nov 2005 16:51:20 +0000 Subject: --- framework/Web/UI/TThemeManager.php | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) (limited to 'framework/Web/UI/TThemeManager.php') diff --git a/framework/Web/UI/TThemeManager.php b/framework/Web/UI/TThemeManager.php index 47c32a2e..b2b205ed 100644 --- a/framework/Web/UI/TThemeManager.php +++ b/framework/Web/UI/TThemeManager.php @@ -1,6 +1,29 @@ + * @link http://www.pradosoft.com/ + * @copyright Copyright © 2005 PradoSoft + * @license http://www.pradosoft.com/license/ + * @version $Revision: $ $Date: $ + * @package System.Web.UI + */ + +/** + * TThemeManager class + * + * TThemeManager manages the themes used in a Prado application. + * + * Themes are stored in under {@link setBasePath BasePath} that can be accessed + * via URL {@link setBaseUrl BaseUrl}. Each theme is defined by a subdirectory + * and all the files under that directory. + * + * @author Qiang Xue + * @version $Revision: $ $Date: $ + * @package System.Web.UI + * @since 3.0 + */ class TThemeManager extends TComponent implements IModule { const THEME_CACHE_PREFIX='prado:theme:'; @@ -71,7 +94,7 @@ class TThemeManager extends TComponent implements IModule $themeUrl=$appUrl.'/'.strtr(substr($themePath,strlen($appPath)),'\\','/'); } else - $themeUrl=$baseUrl.'/'.basename($themePath); + $themeUrl=$this->_baseUrl.'/'.basename($themePath); return new TTheme($this->_application,$themePath,$themeUrl); } -- cgit v1.2.3