diff options
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages/Ticket603.php')
-rw-r--r-- | tests/FunctionalTests/tickets/protected/pages/Ticket603.php | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket603.php b/tests/FunctionalTests/tickets/protected/pages/Ticket603.php index 6af0cf6d..138ffbd4 100644 --- a/tests/FunctionalTests/tickets/protected/pages/Ticket603.php +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket603.php @@ -1,30 +1,30 @@ -<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Ticket603 extends TPage
-{
- protected $_isHtml;
-
- public function onLoad($param) {
- parent::onLoad($param);
- $this->_isHtml = true;
- }
-
- public function switchContentTypeClicked( $sender, $param ) {
- $this->_isHtml = !$this->_isHtml;
- if ( $this->_isHtml ) {
- $this->EditHtmlTextBox->EnableVisualEdit = true;
- $this->EditHtmlTextBox->Text = '<b>somehtml</b>';
- } else {
- $this->EditHtmlTextBox->EnableVisualEdit = false;
- $this->EditHtmlTextBox->Text = 'plai bla bla';
- }
- }
-
- public function switchContentTypeCallback( $sender, $param ) {
- $this->ContentPanel->render( $param->NewWriter );
- }
-}
-
+<?php + +Prado::using('System.Web.UI.ActiveControls.*'); + +class Ticket603 extends TPage +{ + protected $_isHtml; + + public function onLoad($param) { + parent::onLoad($param); + $this->_isHtml = true; + } + + public function switchContentTypeClicked( $sender, $param ) { + $this->_isHtml = !$this->_isHtml; + if ( $this->_isHtml ) { + $this->EditHtmlTextBox->EnableVisualEdit = true; + $this->EditHtmlTextBox->Text = '<b>somehtml</b>'; + } else { + $this->EditHtmlTextBox->EnableVisualEdit = false; + $this->EditHtmlTextBox->Text = 'plai bla bla'; + } + } + + public function switchContentTypeCallback( $sender, $param ) { + $this->ContentPanel->render( $param->NewWriter ); + } +} + ?>
\ No newline at end of file |