summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TPage.php
diff options
context:
space:
mode:
authorxue <>2005-12-08 14:21:44 +0000
committerxue <>2005-12-08 14:21:44 +0000
commit0d2c3c84ea6457a9d0a04e25e19a26811eef8562 (patch)
tree227203839cb7be2ad59e274c8ddc392ecc3cff27 /framework/Web/UI/TPage.php
parent1b0fbdbe10f426de5de8bd361f5e0806b349bdf5 (diff)
Diffstat (limited to 'framework/Web/UI/TPage.php')
-rw-r--r--framework/Web/UI/TPage.php28
1 files changed, 27 insertions, 1 deletions
diff --git a/framework/Web/UI/TPage.php b/framework/Web/UI/TPage.php
index 1aa0d40b..e2565291 100644
--- a/framework/Web/UI/TPage.php
+++ b/framework/Web/UI/TPage.php
@@ -41,6 +41,10 @@ class TPage extends TTemplateControl
*/
private $_form=null;
/**
+ * @var THead head instance
+ */
+ private $_head=null;
+ /**
* @var string template file name
*/
private $_templateFile=null;
@@ -699,7 +703,7 @@ class TPage extends TTemplateControl
$cs->renderHiddenFields($writer);
$cs->renderArrayDeclarations($writer);
$cs->renderExpandoAttributes($writer);
- $cs->renderScriptIncludes($writer);
+ $cs->renderScriptFiles($writer);
$cs->renderEndScripts($writer);
}
else
@@ -741,6 +745,28 @@ class TPage extends TTemplateControl
protected function initializeCulture()
{
}
+
+ public function getHead()
+ {
+ return $this->_head;
+ }
+
+ public function setHead(THead $value)
+ {
+ if($this->_head)
+ throw new TInvalidOperationException('page_head_duplicated');
+ $this->_head=$value;
+ }
+
+ public function getTitle()
+ {
+ return $this->getViewState('Title','');
+ }
+
+ public function setTitle($value)
+ {
+ $this->setViewState('Title',$value,'');
+ }
}
?> \ No newline at end of file