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 | |
parent | cfcac58dc3aa87a292c098848b2a53ab2f954642 (diff) |
added TTheme.BasePath.
-rw-r--r-- | HISTORY | 2 | ||||
-rw-r--r-- | framework/Web/UI/TThemeManager.php | 9 |
2 files changed, 10 insertions, 1 deletions
@@ -8,7 +8,7 @@ ENH: added sanity check to calling event handlers (Qiang) ENH: added search for quickstart tutorials (Wei)
ENH: added support to property tags for template owner control (Qiang)
ENH: added Bulgarian requirement checker messages (StanProg)
-ENH: added TTheme.BaseUrl property (Qiang)
+ENH: added TTheme.BaseUrl and TTheme.BasePath property (Qiang)
CHG: Ticket#151 - URL format is modified to handle empty GET values (Qiang)
CHG: Ticket#153 - TAssetManager now ignores .svn directories (Qiang)
NEW: TTableHeaderRow, TTableFooterRow and table section support (Qiang)
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,
|