summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY1
-rw-r--r--framework/Web/UI/TThemeManager.php40
2 files changed, 41 insertions, 0 deletions
diff --git a/HISTORY b/HISTORY
index d78ec668..2b1bffc7 100644
--- a/HISTORY
+++ b/HISTORY
@@ -5,6 +5,7 @@ BUG: Ticket#650 - Fixed TMysqlMetaData bug about SHOW FULL TABLES (Qiang)
BUG: TWizard Sidebar using TDataListItemRenderer has error (Qiang)
ENH: Ticket#631 - Make TQueue implement Countable as the other collection classes (Knut)
ENH: Ticket#634 - Override __toString for TXmlElement and TXmlDocument (Knut)
+ENH: Ticket#639 - Added setters for certain properties of TTheme (Qiang)
ENH: Ticket#641 - Added support to find out controls of specified class or parent classes (Qiang)
CHG: Ticket#649 - Wrong error message in THttpCookieCollection::itemAt() (Knut)
NEW: Ticket#646 - Implement TAPCCache::add() (Knut)
diff --git a/framework/Web/UI/TThemeManager.php b/framework/Web/UI/TThemeManager.php
index 6b3fe53c..a7651a3e 100644
--- a/framework/Web/UI/TThemeManager.php
+++ b/framework/Web/UI/TThemeManager.php
@@ -328,6 +328,14 @@ class TTheme extends TApplicationComponent implements ITheme
return $this->_name;
}
+ /**
+ * @param string theme name
+ */
+ protected function setName($value)
+ {
+ $this->_name = $value;
+ }
+
/**
* @return string the URL to the theme folder (without ending slash)
*/
@@ -336,6 +344,14 @@ class TTheme extends TApplicationComponent implements ITheme
return $this->_themeUrl;
}
+ /**
+ * @param string the URL to the theme folder
+ */
+ protected function setBaseUrl($value)
+ {
+ $this->_themeUrl=rtrim($value,'/');
+ }
+
/**
* @return string the file path to the theme folder
*/
@@ -344,6 +360,14 @@ class TTheme extends TApplicationComponent implements ITheme
return $this->_themePath;
}
+ /**
+ * @param string tthe file path to the theme folder
+ */
+ protected function setBasePath($value)
+ {
+ $this->_themePath=$value;
+ }
+
/**
* Applies the theme to a particular control.
* The control's class name and SkinID value will be used to
@@ -425,6 +449,14 @@ class TTheme extends TApplicationComponent implements ITheme
return $this->_cssFiles;
}
+ /**
+ * @param array list of CSS files (URL) in the theme
+ */
+ protected function setStyleSheetFiles($value)
+ {
+ $this->_cssFiles=$value;
+ }
+
/**
* @return array list of Javascript files (URL) in the theme
*/
@@ -432,6 +464,14 @@ class TTheme extends TApplicationComponent implements ITheme
{
return $this->_jsFiles;
}
+
+ /**
+ * @param array list of Javascript files (URL) in the theme
+ */
+ protected function setJavaScriptFiles($value)
+ {
+ $this->_jsFiles=$value;
+ }
}
?> \ No newline at end of file