From 1bbff5ec853ae88cdfe1446d22c06a87fe305c0f Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 8 Dec 2005 17:51:08 +0000 Subject: --- framework/Web/UI/WebControls/THead.php | 72 ++++------------------------------ 1 file changed, 7 insertions(+), 65 deletions(-) (limited to 'framework/Web/UI/WebControls/THead.php') diff --git a/framework/Web/UI/WebControls/THead.php b/framework/Web/UI/WebControls/THead.php index 0e074519..e9381432 100644 --- a/framework/Web/UI/WebControls/THead.php +++ b/framework/Web/UI/WebControls/THead.php @@ -58,14 +58,6 @@ */ class THead extends TControl { - /** - * @var array list of javascript files to be loaded by {@link THead} - */ - private $_scriptFiles=array(); - /** - * @var array list of CSS style files to be loaded by {@link THead} - */ - private $_styleFiles=array(); /** * @var array list of meta name tags to be loaded by {@link THead} */ @@ -100,28 +92,6 @@ class THead extends TControl $this->getPage()->setTitle($value); } - /** - * Registers a javascript file to be loaded in client side - * @param string a key that identifies the script file to avoid repetitive registration - * @param string the javascript file which can be relative or absolute URL - * @see isScriptFileRegistered() - */ - public function registerScriptFile($key,$scriptFile) - { - $this->_scriptFiles[$key] = $scriptFile; - } - - /** - * Registers a CSS style file to be imported with the page body - * @param string a key that identifies the style file to avoid repetitive registration - * @param string the javascript file which can be relative or absolute URL - * @see isStyleFileRegistered() - */ - public function registerStyleFile($key,$styleFile) - { - $this->_styleFiles[$key] = $styleFile; - } - /** * Registers a meta tag to be imported with the page body * @param string a key that identifies the meta tag to avoid repetitive registration @@ -134,28 +104,6 @@ class THead extends TControl $this->_metaTags[$key] = $metaTag; } - /** - * Indicates whether the named scriptfile has been registered before. - * @param string the name of the scriptfile - * @return boolean - * @see registerScriptFile() - */ - public function isScriptFileRegistered($key) - { - return isset($this->_scriptFiles[$key]); - } - - /** - * Indicates whether the named CSS style file has been registered before. - * @param string the name of the style file - * @return boolean - * @see registerStyleFile() - */ - public function isStyleFileRegistered($key) - { - return isset($this->_styleFiles[$key]); - } - /** * Indicates whether the named meta tag has been registered before. * @param string the name of tag @@ -174,25 +122,19 @@ class THead extends TControl */ public function render($writer) { - $writer->renderBeginTag('head'); - $writer->writeLine(); - $writer->renderBeginTag('title'); - $writer->write($this->getPage()->getTitle()); - $writer->renderEndTag(); - $writer->writeLine(); + $writer->write("
\n