diff options
Diffstat (limited to 'demos/quickstart/protected/controls/RunBar.php')
-rw-r--r-- | demos/quickstart/protected/controls/RunBar.php | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/demos/quickstart/protected/controls/RunBar.php b/demos/quickstart/protected/controls/RunBar.php index 8990c4c3..4db016be 100644 --- a/demos/quickstart/protected/controls/RunBar.php +++ b/demos/quickstart/protected/controls/RunBar.php @@ -1,23 +1,23 @@ -<?php
-
-class RunBar extends TTemplateControl
-{
- public function getPagePath()
- {
- return $this->getViewState('PagePath','');
- }
-
- public function setPagePath($value)
- {
- $this->setViewState('PagePath',$value,'');
- }
-
- public function onPreRender($param)
- {
- $pagePath=$this->getPagePath();
- $this->RunButton->NavigateUrl="?page=$pagePath";
- $this->ViewSourceButton->NavigateUrl="?page=ViewSource&path=/".strtr($pagePath,'.','/').'.page';
- }
-}
-
+<?php + +class RunBar extends TTemplateControl +{ + public function getPagePath() + { + return $this->getViewState('PagePath',''); + } + + public function setPagePath($value) + { + $this->setViewState('PagePath',$value,''); + } + + public function onPreRender($param) + { + $pagePath=$this->getPagePath(); + $this->RunButton->NavigateUrl="?page=$pagePath"; + $this->ViewSourceButton->NavigateUrl="?page=ViewSource&path=/".strtr($pagePath,'.','/').'.page'; + } +} + ?>
\ No newline at end of file |