summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TPage.php
diff options
context:
space:
mode:
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