summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TThemeManager.php
diff options
context:
space:
mode:
authorxue <>2005-11-20 16:51:20 +0000
committerxue <>2005-11-20 16:51:20 +0000
commit3ddbcb8e4bf8667998d368b07dd2dac017122610 (patch)
tree047a5c7331bf5ccb8058394f27536f588a47f1a3 /framework/Web/UI/TThemeManager.php
parentfd8382b03df7243195b38562c8dac7eb45796657 (diff)
Diffstat (limited to 'framework/Web/UI/TThemeManager.php')
-rw-r--r--framework/Web/UI/TThemeManager.php29
1 files changed, 26 insertions, 3 deletions
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 @@
<?php
-
-
+/**
+ * TThemeManager class
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @link http://www.pradosoft.com/
+ * @copyright Copyright &copy; 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 <qiang.xue@gmail.com>
+ * @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);
}