summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorxue <>2006-05-17 11:03:28 +0000
committerxue <>2006-05-17 11:03:28 +0000
commitf63823ec5a46e633846625964a9c0b34b7694026 (patch)
tree608fc7e380cfff01bab3eb318aa65bdb5e1e1fd0 /framework
parentcfcac58dc3aa87a292c098848b2a53ab2f954642 (diff)
added TTheme.BasePath.
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/UI/TThemeManager.php9
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,