diff options
author | xue <> | 2006-05-17 11:03:28 +0000 |
---|---|---|
committer | xue <> | 2006-05-17 11:03:28 +0000 |
commit | f63823ec5a46e633846625964a9c0b34b7694026 (patch) | |
tree | 608fc7e380cfff01bab3eb318aa65bdb5e1e1fd0 /framework | |
parent | cfcac58dc3aa87a292c098848b2a53ab2f954642 (diff) |
added TTheme.BasePath.
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Web/UI/TThemeManager.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/framework/Web/UI/TThemeManager.php b/framework/Web/UI/TThemeManager.php index c351bcdb..6a908759 100644 --- a/framework/Web/UI/TThemeManager.php +++ b/framework/Web/UI/TThemeManager.php @@ -207,6 +207,7 @@ class TTheme extends TApplicationComponent implements ITheme public function __construct($themePath,$themeUrl)
{
$this->_themeUrl=$themeUrl;
+ $this->_themePath=realpath($themePath);
$this->_name=basename($themePath);
$cacheValid=false;
// TODO: the following needs to be cleaned up (Qiang)
@@ -309,6 +310,14 @@ class TTheme extends TApplicationComponent implements ITheme }
/**
+ * @return string the file path to the theme folder
+ */
+ public function getBasePath()
+ {
+ return $this->_themePath;
+ }
+
+ /**
* Applies the theme to a particular control.
* The control's class name and SkinID value will be used to
* identify which skin to be applied. If the control's SkinID is empty,
|