From f63823ec5a46e633846625964a9c0b34b7694026 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 17 May 2006 11:03:28 +0000 Subject: added TTheme.BasePath. --- HISTORY | 2 +- framework/Web/UI/TThemeManager.php | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/HISTORY b/HISTORY index 28b16f26..d2e18f57 100644 --- a/HISTORY +++ b/HISTORY @@ -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) @@ -308,6 +309,14 @@ class TTheme extends TApplicationComponent implements ITheme return $this->_themeUrl; } + /** + * @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 -- cgit v1.2.3