diff options
author | ctrlaltca <> | 2012-07-12 11:21:01 +0000 |
---|---|---|
committer | ctrlaltca <> | 2012-07-12 11:21:01 +0000 |
commit | 903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 (patch) | |
tree | e08bf04f0823650a231227ac3499121270172a23 /tests/FunctionalTests/active-controls/protected/pages/PostLoadingTest.php | |
parent | 3e4e6e66aeb3f8fea4e1eb4237498ef9d2358f63 (diff) |
standardize the use of unix eol; use svn properties to enforce native eol
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/PostLoadingTest.php')
-rw-r--r-- | tests/FunctionalTests/active-controls/protected/pages/PostLoadingTest.php | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/PostLoadingTest.php b/tests/FunctionalTests/active-controls/protected/pages/PostLoadingTest.php index 1257b45b..d22f2922 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/PostLoadingTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/PostLoadingTest.php @@ -1,45 +1,45 @@ -<?php
-
-class PostLoadingTest extends TPage
-{
- public function onInit($param)
- {
- parent::onInit($param);
-
- // Text Box
- $textBox=new TTextBox();
- $textBox->setVisible(false);
- $textBox->setID("MyTextBox");
- $this->panel1->getControls()->add($textBox);
- $this->registerObject("MyTextBox", $textBox);
-
-
- // Submit button
- $button=new TActiveButton();
- $button->setVisible(false);
- $button->setID("MyButton");
- $button->setText("Submit");
- $button->attachEventHandler("OnCallback", array($this, "clickedButton"));
- $this->panel1->getControls()->add($button);
- $this->registerObject("MyButton", $button);
-
- }
-
-
- function callback1_requested($sender, $param)
- {
- $this->MyTextBox->visible = true;
- $this->MyButton->ActiveControl->EnableUpdate=false;
- $this->MyButton->visible = true;
- $this->panel1->render($param->NewWriter);
- }
-
- function clickedButton($sender, $param)
- {
- $this->panel1->getControls()->add('Result is '.$this->MyTextBox->getText());
- $this->panel1->render($param->NewWriter);
- $this->Page->CallbackClient->Highlight('heading');
- }
-}
-
+<?php + +class PostLoadingTest extends TPage +{ + public function onInit($param) + { + parent::onInit($param); + + // Text Box + $textBox=new TTextBox(); + $textBox->setVisible(false); + $textBox->setID("MyTextBox"); + $this->panel1->getControls()->add($textBox); + $this->registerObject("MyTextBox", $textBox); + + + // Submit button + $button=new TActiveButton(); + $button->setVisible(false); + $button->setID("MyButton"); + $button->setText("Submit"); + $button->attachEventHandler("OnCallback", array($this, "clickedButton")); + $this->panel1->getControls()->add($button); + $this->registerObject("MyButton", $button); + + } + + + function callback1_requested($sender, $param) + { + $this->MyTextBox->visible = true; + $this->MyButton->ActiveControl->EnableUpdate=false; + $this->MyButton->visible = true; + $this->panel1->render($param->NewWriter); + } + + function clickedButton($sender, $param) + { + $this->panel1->getControls()->add('Result is '.$this->MyTextBox->getText()); + $this->panel1->render($param->NewWriter); + $this->Page->CallbackClient->Highlight('heading'); + } +} + ?>
\ No newline at end of file |