From 6a92f398c8396f54e293cc021f0e1a98d4650ca2 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 30 Aug 2006 11:44:59 +0000 Subject: fixed #348. --- HISTORY | 1 + framework/Web/UI/WebControls/THead.php | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/HISTORY b/HISTORY index 87bfafe6..13d7a606 100644 --- a/HISTORY +++ b/HISTORY @@ -3,6 +3,7 @@ Version 3.0.4 September 3, 2006 BUG: Fixed a bug that would prevent from using tag in skins (Qiang) BUG: Fixed a typo in TControl::setCustomData() (Qiang) ENH: Ticket#336 - Speed up TSqliteCache with LIMIT SQL clause (Qiang) +ENH: Ticket#348 - Added THead.ShortcutIcon (Qiang) ENH: TListControl.SelectedValues and SelectedIndices can now be set before databinding (Qiang) ENH: Upgrade Scriptaculous javascript library to 1.6.2 (Wei) ENH: Uses uncompressed javascript in debug mode. (Wei) diff --git a/framework/Web/UI/WebControls/THead.php b/framework/Web/UI/WebControls/THead.php index 5c91002b..a803d484 100644 --- a/framework/Web/UI/WebControls/THead.php +++ b/framework/Web/UI/WebControls/THead.php @@ -112,6 +112,22 @@ class THead extends TControl $this->setViewState('BaseUrl',$url,''); } + /** + * @return string the URL for the shortcut icon of the page. Defaults to ''. + */ + public function getShortcutIcon() + { + return $this->getViewState('ShortcutIcon',''); + } + + /** + * @param string the URL for the shortcut icon of the page. + */ + public function setShortcutIcon($url) + { + $this->setViewState('ShortcutIcon',$url,''); + } + /** * @return TMetaTagCollection meta tag collection */ @@ -136,6 +152,9 @@ class THead extends TControl $writer->write("\n".THttpUtility::htmlEncode($title)."\n"); if(($baseUrl=$this->getBaseUrl())!=='') $writer->write('\n"); + if(($icon=$this->getShortcutIcon())!=='') + $writer->write('\n"); + if(($metaTags=$this->getMetaTags())!==null) { foreach($metaTags as $metaTag) -- cgit v1.2.3