From 903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 Mon Sep 17 00:00:00 2001 From: ctrlaltca <> Date: Thu, 12 Jul 2012 11:21:01 +0000 Subject: standardize the use of unix eol; use svn properties to enforce native eol --- .../protected/pages/ActiveControlExpressionTag.php | 50 ++++----- .../protected/pages/ActiveControlWithTinyMce.php | 20 ++-- .../protected/pages/ActiveImageButtonTest.php | 60 +++++----- .../protected/pages/ActiveLinkButtonTest.php | 30 ++--- .../protected/pages/ActiveListBoxMasterTest.php | 92 +++++++-------- .../protected/pages/ActiveListBoxTest.php | 92 +++++++-------- .../protected/pages/ActivePanelVisibleTest.php | 34 +++--- .../protected/pages/ActiveRadioButtonListTest.php | 54 ++++----- .../protected/pages/ActiveRadioButtonTest.php | 66 +++++------ .../pages/ActiveRatingListAllowInputTest.php | 52 ++++----- .../pages/ActiveRatingListAutoPostBackTest.php | 52 ++++----- .../pages/ActiveRatingListCheckBoxesTest.php | 44 ++++---- .../pages/ActiveRatingListEnabledTest.php | 72 ++++++------ .../pages/ActiveRatingListHoverCaptionTest.php | 52 ++++----- .../protected/pages/ActiveRatingListRatingTest.php | 62 +++++------ .../pages/ActiveRatingListReadOnlyTest.php | 74 ++++++------ .../pages/ActiveRatingListSelectedIndexTest.php | 62 +++++------ .../protected/pages/ActiveRedirectionTest.php | 22 ++-- .../active-controls/protected/pages/Callback.php | 24 ++-- .../pages/CallbackCustomValidatorTest.php | 20 ++-- .../protected/pages/ClientSideDispatch.php | 32 +++--- .../protected/pages/CustomTemplateComponent.php | 20 ++-- .../protected/pages/CustomTemplateControlTest.php | 52 ++++----- .../protected/pages/CustomValidatorByPass.php | 72 ++++++------ .../protected/pages/DMessagesPanel.php | 124 ++++++++++----------- .../protected/pages/DatePickerInCallback.php | 32 +++--- .../protected/pages/DelayedCallback.php | 40 +++---- .../protected/pages/DisplayStyleTest.php | 50 ++++----- .../protected/pages/DynamicRepeaterDataTest.php | 44 ++++---- .../protected/pages/EventTriggeredCallback.php | 40 +++---- .../active-controls/protected/pages/GerTurno2.php | 104 ++++++++--------- .../active-controls/protected/pages/Home.php | 20 ++-- .../protected/pages/InPlaceWithValidator.php | 24 ++-- .../protected/pages/LargePageStateTest.php | 42 +++---- .../protected/pages/LargePageStateTest2.php | 42 +++---- .../active-controls/protected/pages/Master1.php | 12 +- .../protected/pages/MessagesPanelTest.php | 30 ++--- .../active-controls/protected/pages/MyControl.php | 14 +-- .../protected/pages/MyTabPanelTest.php | 82 +++++++------- .../protected/pages/NullStateTest.php | 16 +-- .../protected/pages/PopulateActiveList.php | 66 +++++------ .../protected/pages/PostLoadingTest.php | 88 +++++++-------- .../protected/pages/RadioButtonListTest.php | 54 ++++----- .../active-controls/protected/pages/RatingList.php | 66 +++++------ .../protected/pages/RepeaterWithActiveControls.php | 120 ++++++++++---------- .../protected/pages/ReplaceContentTest.php | 82 +++++++------- .../protected/pages/Sessioned/PageStateTest.php | 24 ++-- .../protected/pages/TInPlaceTextBoxTest.php | 50 ++++----- .../protected/pages/TestMasterPage.php | 12 +- .../protected/pages/TextBoxValidationCallback.php | 20 ++-- .../protected/pages/ValueTriggerCallbackTest.php | 22 ++-- 51 files changed, 1265 insertions(+), 1265 deletions(-) (limited to 'tests/FunctionalTests/active-controls/protected') diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveControlExpressionTag.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveControlExpressionTag.php index e873ae9d..d0b8650e 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/ActiveControlExpressionTag.php +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveControlExpressionTag.php @@ -1,26 +1,26 @@ -subpanel1->Visible = true; - $data = array('1', 'two'); - $this->repeater1->DataSource = $data; - $this->repeater1->dataBind(); - } - - public function button1_callback($sender, $param) - { - $this->panel1->renderControl($param->NewWriter); - $this->button2->Enabled=true; - } - - public function button2_callback($sender, $param) - { - $this->panel2->Visible=true; - $this->Page->CallbackClient->insertContentAfter('contents', $this->panel2); - } -} - +subpanel1->Visible = true; + $data = array('1', 'two'); + $this->repeater1->DataSource = $data; + $this->repeater1->dataBind(); + } + + public function button1_callback($sender, $param) + { + $this->panel1->renderControl($param->NewWriter); + $this->button2->Enabled=true; + } + + public function button2_callback($sender, $param) + { + $this->panel2->Visible=true; + $this->Page->CallbackClient->insertContentAfter('contents', $this->panel2); + } +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveControlWithTinyMce.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveControlWithTinyMce.php index a154e0dd..ec9040a1 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/ActiveControlWithTinyMce.php +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveControlWithTinyMce.php @@ -1,11 +1,11 @@ -label1->Text = $this->text1->SafeText; - } -} - +label1->Text = $this->text1->SafeText; + } +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveImageButtonTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveImageButtonTest.php index eced2457..44c20ef6 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/ActiveImageButtonTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveImageButtonTest.php @@ -1,31 +1,31 @@ -image1->AlternateText = "Muahahahah"; - } - - function change_image($sender, $param) - { - $this->image1->ImageUrl = $sender->CustomData; - } - - function change_align($sender, $param) - { - $this->image1->ImageAlign="absbottom"; - } - - function change_description($sender, $param) - { - $this->image1->DescriptionUrl = "maahahhaa"; - } - - function image1_clicked($sender, $param) - { - $this->label1->Text = "Image clicked at x={$param->x}, y={$param->y}"; - } -} - +image1->AlternateText = "Muahahahah"; + } + + function change_image($sender, $param) + { + $this->image1->ImageUrl = $sender->CustomData; + } + + function change_align($sender, $param) + { + $this->image1->ImageAlign="absbottom"; + } + + function change_description($sender, $param) + { + $this->image1->DescriptionUrl = "maahahhaa"; + } + + function image1_clicked($sender, $param) + { + $this->label1->Text = "Image clicked at x={$param->x}, y={$param->y}"; + } +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveLinkButtonTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveLinkButtonTest.php index 4fc3a23e..74ce985c 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/ActiveLinkButtonTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveLinkButtonTest.php @@ -1,16 +1,16 @@ -label1->Text = "Button 1 was clicked "; - } - - function button2_oncallback($sender, $param) - { - $this->label1->Text .= "using callback!"; - } -} - +label1->Text = "Button 1 was clicked "; + } + + function button2_oncallback($sender, $param) + { + $this->label1->Text .= "using callback!"; + } +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxMasterTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxMasterTest.php index d2991653..eaa61fd6 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxMasterTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxMasterTest.php @@ -1,47 +1,47 @@ -getSelectedValues(); - $this->label1->setText("Selection: ".implode(', ', $values)); - } - - function select_index_123() - { - $this->list1->setSelectedIndices(array(1,2,3)); - } - - function select_index_4() - { - $this->list1->setSelectedIndex(4); - } - - function clear_selections() - { - $this->list1->clearSelection(); - } - - function select_value_1() - { - $this->list1->setSelectedValue("value 1"); - } - - function select_values_25() - { - $this->list1->setSelectedValues(array('value 2', 'value 5')); - } - - function change_to_multiple() - { - $this->list1->SelectionMode="Multiple"; - } - - function change_to_single() - { - $this->list1->SelectionMode="Single"; - } -} - +getSelectedValues(); + $this->label1->setText("Selection: ".implode(', ', $values)); + } + + function select_index_123() + { + $this->list1->setSelectedIndices(array(1,2,3)); + } + + function select_index_4() + { + $this->list1->setSelectedIndex(4); + } + + function clear_selections() + { + $this->list1->clearSelection(); + } + + function select_value_1() + { + $this->list1->setSelectedValue("value 1"); + } + + function select_values_25() + { + $this->list1->setSelectedValues(array('value 2', 'value 5')); + } + + function change_to_multiple() + { + $this->list1->SelectionMode="Multiple"; + } + + function change_to_single() + { + $this->list1->SelectionMode="Single"; + } +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxTest.php index 942bb1a0..a80dbc1c 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxTest.php @@ -1,47 +1,47 @@ -getSelectedValues(); - $this->label1->setText("Selection: ".implode(', ', $values)); - } - - function select_index_123() - { - $this->list1->setSelectedIndices(array(1,2,3)); - } - - function select_index_4() - { - $this->list1->setSelectedIndex(4); - } - - function clear_selections() - { - $this->list1->clearSelection(); - } - - function select_value_1() - { - $this->list1->setSelectedValue("value 1"); - } - - function select_values_25() - { - $this->list1->setSelectedValues(array('value 2', 'value 5')); - } - - function change_to_multiple() - { - $this->list1->SelectionMode="Multiple"; - } - - function change_to_single() - { - $this->list1->SelectionMode="Single"; - } -} - +getSelectedValues(); + $this->label1->setText("Selection: ".implode(', ', $values)); + } + + function select_index_123() + { + $this->list1->setSelectedIndices(array(1,2,3)); + } + + function select_index_4() + { + $this->list1->setSelectedIndex(4); + } + + function clear_selections() + { + $this->list1->clearSelection(); + } + + function select_value_1() + { + $this->list1->setSelectedValue("value 1"); + } + + function select_values_25() + { + $this->list1->setSelectedValues(array('value 2', 'value 5')); + } + + function change_to_multiple() + { + $this->list1->SelectionMode="Multiple"; + } + + function change_to_single() + { + $this->list1->SelectionMode="Single"; + } +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActivePanelVisibleTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActivePanelVisibleTest.php index e922319e..aaf43abc 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/ActivePanelVisibleTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/ActivePanelVisibleTest.php @@ -1,18 +1,18 @@ -pnlB->Visible = false; - $this->pnlA->Visible = true; - } - - public function showB() - { - $this->pnlB->Visible = true; - $this->pnlA->Visible = false; - } -} - +pnlB->Visible = false; + $this->pnlA->Visible = true; + } + + public function showB() + { + $this->pnlB->Visible = true; + $this->pnlA->Visible = false; + } +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonListTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonListTest.php index ee805e11..22d2c79c 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonListTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonListTest.php @@ -1,28 +1,28 @@ -getSelectedValues(); - var_dump($values); - $this->label1->setText("Selection: ".implode(', ', $values)); - } - - function select_index_4() - { - $this->list1->setSelectedIndex(4); - } - - function clear_selections() - { - $this->list1->clearSelection(); - } - - function select_value_1() - { - $this->list1->setSelectedValue("value 1"); - } -} - +getSelectedValues(); + var_dump($values); + $this->label1->setText("Selection: ".implode(', ', $values)); + } + + function select_index_4() + { + $this->list1->setSelectedIndex(4); + } + + function clear_selections() + { + $this->list1->clearSelection(); + } + + function select_value_1() + { + $this->list1->setSelectedValue("value 1"); + } +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonTest.php index 64e7d92e..fce204d1 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonTest.php @@ -1,34 +1,34 @@ -radio1->Text = "Hello Radio Button 1"; - } - - function change_radio1_checked() - { - $this->radio1->Checked = !$this->radio1->Checked; - } - - function change_radio2_text() - { - $this->radio2->Text = "Radio Button 2 World"; - } - - function change_radio2_checked() - { - $this->radio2->Checked = !$this->radio2->Checked; - } - - function radiobutton_requested($sender, $param) - { - $this->label1->Text = "Label 1:".$sender->Text. - ($sender->checked ? ' Checked ' : ' Not Checked'); - } - - -} - +radio1->Text = "Hello Radio Button 1"; + } + + function change_radio1_checked() + { + $this->radio1->Checked = !$this->radio1->Checked; + } + + function change_radio2_text() + { + $this->radio2->Text = "Radio Button 2 World"; + } + + function change_radio2_checked() + { + $this->radio2->Checked = !$this->radio2->Checked; + } + + function radiobutton_requested($sender, $param) + { + $this->label1->Text = "Label 1:".$sender->Text. + ($sender->checked ? ' Checked ' : ' Not Checked'); + } + + +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListAllowInputTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListAllowInputTest.php index c825f3f8..50b9817d 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListAllowInputTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListAllowInputTest.php @@ -1,27 +1,27 @@ - - * @version Creation Date: Oct 13, 2008 - */ - -/** - * TRatingListTest.php class - * - * - * - * Properties - * - - * - * @author Bradley Booms - * @version Modified Date: Oct 13, 2008 - * - * Modifications: - */ -class ActiveRatingListAllowInputTest extends TPage{ - public function ratingChanged($sender, $param){ - $this->Status->setText($sender->getRating().' : '.$sender->getSelectedValue()); - } -} + + * @version Creation Date: Oct 13, 2008 + */ + +/** + * TRatingListTest.php class + * + * + * + * Properties + * - + * + * @author Bradley Booms + * @version Modified Date: Oct 13, 2008 + * + * Modifications: + */ +class ActiveRatingListAllowInputTest extends TPage{ + public function ratingChanged($sender, $param){ + $this->Status->setText($sender->getRating().' : '.$sender->getSelectedValue()); + } +} ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListAutoPostBackTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListAutoPostBackTest.php index 4b087b76..c094a34b 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListAutoPostBackTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListAutoPostBackTest.php @@ -1,27 +1,27 @@ - - * @version Creation Date: Oct 13, 2008 - */ - -/** - * TRatingListTest.php class - * - * - * - * Properties - * - - * - * @author Bradley Booms - * @version Modified Date: Oct 13, 2008 - * - * Modifications: - */ -class ActiveRatingListAutoPostBackTest extends TPage{ - public function ratingChanged($sender, $param){ - $this->Status->setText($sender->getRating().' : '.$sender->getSelectedValue()); - } -} + + * @version Creation Date: Oct 13, 2008 + */ + +/** + * TRatingListTest.php class + * + * + * + * Properties + * - + * + * @author Bradley Booms + * @version Modified Date: Oct 13, 2008 + * + * Modifications: + */ +class ActiveRatingListAutoPostBackTest extends TPage{ + public function ratingChanged($sender, $param){ + $this->Status->setText($sender->getRating().' : '.$sender->getSelectedValue()); + } +} ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListCheckBoxesTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListCheckBoxesTest.php index 5c6dfa70..0ba260d4 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListCheckBoxesTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListCheckBoxesTest.php @@ -1,23 +1,23 @@ - - * @version Creation Date: Oct 13, 2008 - */ - -/** - * TRatingListTest.php class - * - * - * - * Properties - * - - * - * @author Bradley Booms - * @version Modified Date: Oct 13, 2008 - * - * Modifications: - */ -class ActiveRatingListCheckBoxesTest extends TPage{ } + + * @version Creation Date: Oct 13, 2008 + */ + +/** + * TRatingListTest.php class + * + * + * + * Properties + * - + * + * @author Bradley Booms + * @version Modified Date: Oct 13, 2008 + * + * Modifications: + */ +class ActiveRatingListCheckBoxesTest extends TPage{ } ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListEnabledTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListEnabledTest.php index 0cac7418..fde87812 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListEnabledTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListEnabledTest.php @@ -1,37 +1,37 @@ - - * @version Creation Date: Oct 13, 2008 - */ - -/** - * TRatingListTest.php class - * - * - * - * Properties - * - - * - * @author Bradley Booms - * @version Modified Date: Oct 13, 2008 - * - * Modifications: - */ -class ActiveRatingListEnabledTest extends TPage{ - public function ratingChanged($sender, $param){ - $this->Status->setText($sender->getRating().' : '.$sender->getSelectedValue()); - } - - public function enable($sender, $param){ - $this->RatingList->setEnabled(true); - $this->Status->setText('Enabled=true'); - } - - public function disable($sender, $param){ - $this->RatingList->setEnabled(false); - $this->Status->setText('Enabled=false'); - } -} + + * @version Creation Date: Oct 13, 2008 + */ + +/** + * TRatingListTest.php class + * + * + * + * Properties + * - + * + * @author Bradley Booms + * @version Modified Date: Oct 13, 2008 + * + * Modifications: + */ +class ActiveRatingListEnabledTest extends TPage{ + public function ratingChanged($sender, $param){ + $this->Status->setText($sender->getRating().' : '.$sender->getSelectedValue()); + } + + public function enable($sender, $param){ + $this->RatingList->setEnabled(true); + $this->Status->setText('Enabled=true'); + } + + public function disable($sender, $param){ + $this->RatingList->setEnabled(false); + $this->Status->setText('Enabled=false'); + } +} ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListHoverCaptionTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListHoverCaptionTest.php index 06d82d39..c8281256 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListHoverCaptionTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListHoverCaptionTest.php @@ -1,27 +1,27 @@ - - * @version Creation Date: Oct 13, 2008 - */ - -/** - * TRatingListTest.php class - * - * - * - * Properties - * - - * - * @author Bradley Booms - * @version Modified Date: Oct 13, 2008 - * - * Modifications: - */ -class ActiveRatingListHoverCaptionTest extends TPage{ - public function ratingChanged($sender, $param){ - $sender->setCaption($sender->getRating().' : '.$sender->getSelectedValue()); - } -} + + * @version Creation Date: Oct 13, 2008 + */ + +/** + * TRatingListTest.php class + * + * + * + * Properties + * - + * + * @author Bradley Booms + * @version Modified Date: Oct 13, 2008 + * + * Modifications: + */ +class ActiveRatingListHoverCaptionTest extends TPage{ + public function ratingChanged($sender, $param){ + $sender->setCaption($sender->getRating().' : '.$sender->getSelectedValue()); + } +} ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListRatingTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListRatingTest.php index fe5c8404..97369a8d 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListRatingTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListRatingTest.php @@ -1,32 +1,32 @@ - - * @version Creation Date: Oct 13, 2008 - */ - -/** - * TRatingListTest.php class - * - * - * - * Properties - * - - * - * @author Bradley Booms - * @version Modified Date: Oct 13, 2008 - * - * Modifications: - */ -class ActiveRatingListRatingTest extends TPage{ - public function ratingChanged($sender, $param){ - $this->Status->setText('Rating: '.$sender->getRating()); - } - - public function setRating($sender, $param){ - $this->RatingList->setRating(3); - $this->ratingChanged($this->RatingList, null); - } -} + + * @version Creation Date: Oct 13, 2008 + */ + +/** + * TRatingListTest.php class + * + * + * + * Properties + * - + * + * @author Bradley Booms + * @version Modified Date: Oct 13, 2008 + * + * Modifications: + */ +class ActiveRatingListRatingTest extends TPage{ + public function ratingChanged($sender, $param){ + $this->Status->setText('Rating: '.$sender->getRating()); + } + + public function setRating($sender, $param){ + $this->RatingList->setRating(3); + $this->ratingChanged($this->RatingList, null); + } +} ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListReadOnlyTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListReadOnlyTest.php index 070fd13f..722f60ea 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListReadOnlyTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListReadOnlyTest.php @@ -1,38 +1,38 @@ - - * @version Creation Date: Oct 13, 2008 - */ - -/** - * TRatingListTest.php class - * - * - * - * Properties - * - - * - * @author Bradley Booms - * @version Modified Date: Oct 13, 2008 - * - * Modifications: - */ -class ActiveRatingListReadOnlyTest extends TPage{ - public function ratingChanged($sender, $param){ - $this->Status->setText($sender->getRating().' : '.$sender->getSelectedValue()); - } - - public function readOnly($sender, $param){ - $this->RatingList->setReadOnly(true); - $this->Status->setText('ReadOnly=true'); - } - - public function writable($sender, $param){ - $this->RatingList->setReadOnly(false); - $this->Status->setText('ReadOnly=false'); - } - -} + + * @version Creation Date: Oct 13, 2008 + */ + +/** + * TRatingListTest.php class + * + * + * + * Properties + * - + * + * @author Bradley Booms + * @version Modified Date: Oct 13, 2008 + * + * Modifications: + */ +class ActiveRatingListReadOnlyTest extends TPage{ + public function ratingChanged($sender, $param){ + $this->Status->setText($sender->getRating().' : '.$sender->getSelectedValue()); + } + + public function readOnly($sender, $param){ + $this->RatingList->setReadOnly(true); + $this->Status->setText('ReadOnly=true'); + } + + public function writable($sender, $param){ + $this->RatingList->setReadOnly(false); + $this->Status->setText('ReadOnly=false'); + } + +} ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListSelectedIndexTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListSelectedIndexTest.php index 4dbc6949..f0d8d2ef 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListSelectedIndexTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveRatingListSelectedIndexTest.php @@ -1,32 +1,32 @@ - - * @version Creation Date: Oct 13, 2008 - */ - -/** - * TRatingListTest.php class - * - * - * - * Properties - * - - * - * @author Bradley Booms - * @version Modified Date: Oct 13, 2008 - * - * Modifications: - */ -class ActiveRatingListSelectedIndexTest extends TPage{ - public function ratingChanged($sender, $param){ - $this->Status->setText('SelectedIndex: '.$sender->getSelectedIndex()); - } - - public function setSelectedIndex($sender, $param){ - $this->RatingList->setSelectedIndex(5); - $this->ratingChanged($this->RatingList, null); - } -} + + * @version Creation Date: Oct 13, 2008 + */ + +/** + * TRatingListTest.php class + * + * + * + * Properties + * - + * + * @author Bradley Booms + * @version Modified Date: Oct 13, 2008 + * + * Modifications: + */ +class ActiveRatingListSelectedIndexTest extends TPage{ + public function ratingChanged($sender, $param){ + $this->Status->setText('SelectedIndex: '.$sender->getSelectedIndex()); + } + + public function setSelectedIndex($sender, $param){ + $this->RatingList->setSelectedIndex(5); + $this->ratingChanged($this->RatingList, null); + } +} ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveRedirectionTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveRedirectionTest.php index 65958eeb..a3c714fe 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/ActiveRedirectionTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveRedirectionTest.php @@ -1,12 +1,12 @@ -Service->constructUrl($this->Service->DefaultPage); - $this->Response->redirect($default); - } -} - +Service->constructUrl($this->Service->DefaultPage); + $this->Response->redirect($default); + } +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/Callback.php b/tests/FunctionalTests/active-controls/protected/pages/Callback.php index d19d92aa..00357f1e 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/Callback.php +++ b/tests/FunctionalTests/active-controls/protected/pages/Callback.php @@ -1,13 +1,13 @@ - \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/CallbackCustomValidatorTest.php b/tests/FunctionalTests/active-controls/protected/pages/CallbackCustomValidatorTest.php index bf8d730b..319cc354 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/CallbackCustomValidatorTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/CallbackCustomValidatorTest.php @@ -1,11 +1,11 @@ -IsValid = $param->Value == 'Prado'; - } -} - +IsValid = $param->Value == 'Prado'; + } +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ClientSideDispatch.php b/tests/FunctionalTests/active-controls/protected/pages/ClientSideDispatch.php index 84099114..e747bb63 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/ClientSideDispatch.php +++ b/tests/FunctionalTests/active-controls/protected/pages/ClientSideDispatch.php @@ -1,17 +1,17 @@ -status1->Text = "Method 1 callback with parameter: {$param->CallbackParameter}"; - } - - function method2($sender, $param) - { - $this->status2->Text = "Method 2 callback"; - } -} - +status1->Text = "Method 1 callback with parameter: {$param->CallbackParameter}"; + } + + function method2($sender, $param) + { + $this->status2->Text = "Method 2 callback"; + } +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/CustomTemplateComponent.php b/tests/FunctionalTests/active-controls/protected/pages/CustomTemplateComponent.php index 7da2834e..8a3e6c9f 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/CustomTemplateComponent.php +++ b/tests/FunctionalTests/active-controls/protected/pages/CustomTemplateComponent.php @@ -1,11 +1,11 @@ -setText("Foo"); - } -} - +setText("Foo"); + } +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/CustomTemplateControlTest.php b/tests/FunctionalTests/active-controls/protected/pages/CustomTemplateControlTest.php index 18005a2b..a1d55adc 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/CustomTemplateControlTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/CustomTemplateControlTest.php @@ -1,27 +1,27 @@ -label1->Text = "Button 1 was clicked "; - $this->label1->Text .= $this->foo->Text; - - $x=Prado::createComponent('Application.pages.CustomTemplateComponent'); - - $this->placeholder->getControls()->add($x); - $this->placeholder->dataBind(); - } - - function button2_callback($sender, $param) - { - $this->placeholder->render($param->NewWriter); - - $this->label1->Text .= " using callback!"; - $this->label1->Text .= "... and this is the textbox text: ". $this->foo->Text; - } - -} - +label1->Text = "Button 1 was clicked "; + $this->label1->Text .= $this->foo->Text; + + $x=Prado::createComponent('Application.pages.CustomTemplateComponent'); + + $this->placeholder->getControls()->add($x); + $this->placeholder->dataBind(); + } + + function button2_callback($sender, $param) + { + $this->placeholder->render($param->NewWriter); + + $this->label1->Text .= " using callback!"; + $this->label1->Text .= "... and this is the textbox text: ". $this->foo->Text; + } + +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/CustomValidatorByPass.php b/tests/FunctionalTests/active-controls/protected/pages/CustomValidatorByPass.php index 54c99c64..edc68ae4 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/CustomValidatorByPass.php +++ b/tests/FunctionalTests/active-controls/protected/pages/CustomValidatorByPass.php @@ -1,37 +1,37 @@ -validator2->getActiveControl()->getClientSide(); - - $Client->setOnLoading('$(\'loginLoader\').show();'); - $Client->setOnComplete('$(\'loginLoader\').hide();'); - - //$Client->setOnValidationError('alert(\'Authentication Failed\');'); - //$Client->setOnValidationSuccess('new Effect.Fade(\'loginBox\')'); - - } - - public function validateUser($sender,$param) - { - $param->IsValid = $this->Password->Text=='test'; - } - - public function doLogin($sender,$param) - { - - /* This isnt even getting called */ - if($this->Page->IsValid) - { - // Re-Render the active panel - } - - } -} - +validator2->getActiveControl()->getClientSide(); + + $Client->setOnLoading('$(\'loginLoader\').show();'); + $Client->setOnComplete('$(\'loginLoader\').hide();'); + + //$Client->setOnValidationError('alert(\'Authentication Failed\');'); + //$Client->setOnValidationSuccess('new Effect.Fade(\'loginBox\')'); + + } + + public function validateUser($sender,$param) + { + $param->IsValid = $this->Password->Text=='test'; + } + + public function doLogin($sender,$param) + { + + /* This isnt even getting called */ + if($this->Page->IsValid) + { + // Re-Render the active panel + } + + } +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/DMessagesPanel.php b/tests/FunctionalTests/active-controls/protected/pages/DMessagesPanel.php index d318660d..ce3d1bc0 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/DMessagesPanel.php +++ b/tests/FunctionalTests/active-controls/protected/pages/DMessagesPanel.php @@ -1,63 +1,63 @@ -MessagesPanelEffect->Text = ""; - } - - public function setMessage($value) - { - $this->Message->Text = $value; - if ($value != '') - $this->setVisible(true); - else - $this->setVisible(false); - } - - public function setVisible($value) - { - $this->ensureChildControls(); - if ($value === true) { - echo "set visible"; - $this->MessagesPanel->Visible = true; - $this->Message->Visible = true; - $this->setEffect(null); - } else { - $this->MessagesPanel->Visible = false; - } - } - - public function setEffect($effect = null) - { - if ($effect !== null) { - $text = ""; - $this->MessagesPanelEffect->Text = $text; - } else { - $this->MessagesPanelEffect->Text = ''; - } - } - - public function setPanelCssClass($value) - { - $this->ensureChildControls(); - $this->MessagesPanel->CssClass = $value; - } - - public function setMessageCssClass($value) - { - $this->ensureChildControls(); - $this->Message->CssClass = $value; - } -} - +MessagesPanelEffect->Text = ""; + } + + public function setMessage($value) + { + $this->Message->Text = $value; + if ($value != '') + $this->setVisible(true); + else + $this->setVisible(false); + } + + public function setVisible($value) + { + $this->ensureChildControls(); + if ($value === true) { + echo "set visible"; + $this->MessagesPanel->Visible = true; + $this->Message->Visible = true; + $this->setEffect(null); + } else { + $this->MessagesPanel->Visible = false; + } + } + + public function setEffect($effect = null) + { + if ($effect !== null) { + $text = ""; + $this->MessagesPanelEffect->Text = $text; + } else { + $this->MessagesPanelEffect->Text = ''; + } + } + + public function setPanelCssClass($value) + { + $this->ensureChildControls(); + $this->MessagesPanel->CssClass = $value; + } + + public function setMessageCssClass($value) + { + $this->ensureChildControls(); + $this->Message->CssClass = $value; + } +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/DatePickerInCallback.php b/tests/FunctionalTests/active-controls/protected/pages/DatePickerInCallback.php index 94a4ec25..05fd323e 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/DatePickerInCallback.php +++ b/tests/FunctionalTests/active-controls/protected/pages/DatePickerInCallback.php @@ -1,17 +1,17 @@ -IsPostBack) - $this->datepicker->setTimeStamp(time()); - } - - public function testDatePicker($sender, $param){ - $this->status->Text = $this->datepicker->getTimestamp()." ".$this->datepicker->getText(); - } - - } - +IsPostBack) + $this->datepicker->setTimeStamp(time()); + } + + public function testDatePicker($sender, $param){ + $this->status->Text = $this->datepicker->getTimestamp()." ".$this->datepicker->getText(); + } + + } + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/DelayedCallback.php b/tests/FunctionalTests/active-controls/protected/pages/DelayedCallback.php index 7e9195dc..1785bd34 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/DelayedCallback.php +++ b/tests/FunctionalTests/active-controls/protected/pages/DelayedCallback.php @@ -1,21 +1,21 @@ -status->Text="Callback 1 returned after {$ms}s"; - } - - function callback2($sender, $param) - { - $ms = 2; - sleep($ms); - $this->status->Text="Callback 2 delayed {$ms}s"; - } - -} - +status->Text="Callback 1 returned after {$ms}s"; + } + + function callback2($sender, $param) + { + $ms = 2; + sleep($ms); + $this->status->Text="Callback 2 delayed {$ms}s"; + } + +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/DisplayStyleTest.php b/tests/FunctionalTests/active-controls/protected/pages/DisplayStyleTest.php index a49a8bfa..7c791564 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/DisplayStyleTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/DisplayStyleTest.php @@ -1,26 +1,26 @@ -button1->Display="Dynamic"; - } - - function hide_button1() - { - $this->button1->Display="None"; - } - - function show_button2() - { - $this->button2->Display="Fixed"; - } - - function hide_button2() - { - $this->button2->Display="Hidden"; - } -} - +button1->Display="Dynamic"; + } + + function hide_button1() + { + $this->button1->Display="None"; + } + + function show_button2() + { + $this->button2->Display="Fixed"; + } + + function hide_button2() + { + $this->button2->Display="Hidden"; + } +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/DynamicRepeaterDataTest.php b/tests/FunctionalTests/active-controls/protected/pages/DynamicRepeaterDataTest.php index 729a87dc..0df32f6a 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/DynamicRepeaterDataTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/DynamicRepeaterDataTest.php @@ -1,23 +1,23 @@ -_repeater->dataSource = array(1,2,3); - $this->_repeater->dataBind(); - } - - function button_callback($sender, $param) - { - $this->panel1->render($param->NewWriter); - } - - function rpt_button_clicked($sender, $param) - { - $item = $sender->NamingContainer; - $item->label1->Text = $sender->Text; - } -} - +_repeater->dataSource = array(1,2,3); + $this->_repeater->dataBind(); + } + + function button_callback($sender, $param) + { + $this->panel1->render($param->NewWriter); + } + + function rpt_button_clicked($sender, $param) + { + $item = $sender->NamingContainer; + $item->label1->Text = $sender->Text; + } +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/EventTriggeredCallback.php b/tests/FunctionalTests/active-controls/protected/pages/EventTriggeredCallback.php index dc47d867..bcc53389 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/EventTriggeredCallback.php +++ b/tests/FunctionalTests/active-controls/protected/pages/EventTriggeredCallback.php @@ -1,21 +1,21 @@ -label1->Text = 'text 1 focused'; - } - - function panel1_onmouseover($sender, $param) - { - $this->label1->Text = 'panel 1 on mouse over '.time(); - } - - function button1_clicked($sender, $param) - { - $this->label1->Text = 'button 1 clicked'; - } -} - +label1->Text = 'text 1 focused'; + } + + function panel1_onmouseover($sender, $param) + { + $this->label1->Text = 'panel 1 on mouse over '.time(); + } + + function button1_clicked($sender, $param) + { + $this->label1->Text = 'button 1 clicked'; + } +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/GerTurno2.php b/tests/FunctionalTests/active-controls/protected/pages/GerTurno2.php index d31c10f6..e2ffbf07 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/GerTurno2.php +++ b/tests/FunctionalTests/active-controls/protected/pages/GerTurno2.php @@ -1,53 +1,53 @@ -loadTurnoOptions(); - - if (!$this->IsPostBack) { - $this->ativaModoEdicao(); - } - } - - - protected function loadTurnoOptions() - { - $this->DDropTurno->DataTextField="descricao"; - $this->DDropTurno->DataValueField="id"; - $this->_turnos = array( - array('id' => 1, 'codigo'=>'test 1', 'descricao' => 'hello 1'), - array('id' => 2, 'codigo'=>'test 2', 'descricao' => 'hello 2') - ); - $this->DDropTurno->setDataSource($this->_turnos); - $this->DDropTurno->dataBind(); - } - - - protected function ativaModoEdicao() { - $this->loadDadosTurno($this->DDropTurno->getSelectedValue()); - } - - - protected function loadDadosTurno($id) { - foreach ($this->_turnos as $key => $tur) { - if ($tur['id'] == $id) { - $this->Codigo->setText($tur['codigo']); - $this->Descricao->setText($tur['descricao']); - } - } - } - - - public function trocaTurno($sender,$param) { - $this->loadDadosTurno($sender->getSelectedValue()); - } - -} - +loadTurnoOptions(); + + if (!$this->IsPostBack) { + $this->ativaModoEdicao(); + } + } + + + protected function loadTurnoOptions() + { + $this->DDropTurno->DataTextField="descricao"; + $this->DDropTurno->DataValueField="id"; + $this->_turnos = array( + array('id' => 1, 'codigo'=>'test 1', 'descricao' => 'hello 1'), + array('id' => 2, 'codigo'=>'test 2', 'descricao' => 'hello 2') + ); + $this->DDropTurno->setDataSource($this->_turnos); + $this->DDropTurno->dataBind(); + } + + + protected function ativaModoEdicao() { + $this->loadDadosTurno($this->DDropTurno->getSelectedValue()); + } + + + protected function loadDadosTurno($id) { + foreach ($this->_turnos as $key => $tur) { + if ($tur['id'] == $id) { + $this->Codigo->setText($tur['codigo']); + $this->Descricao->setText($tur['descricao']); + } + } + } + + + public function trocaTurno($sender,$param) { + $this->loadDadosTurno($sender->getSelectedValue()); + } + +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/Home.php b/tests/FunctionalTests/active-controls/protected/pages/Home.php index 22b6528a..3dfb4bb0 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/Home.php +++ b/tests/FunctionalTests/active-controls/protected/pages/Home.php @@ -1,11 +1,11 @@ -lblTest->Text = "Testing"; - } -} - +lblTest->Text = "Testing"; + } +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/InPlaceWithValidator.php b/tests/FunctionalTests/active-controls/protected/pages/InPlaceWithValidator.php index e69ffdf2..c58a006a 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/InPlaceWithValidator.php +++ b/tests/FunctionalTests/active-controls/protected/pages/InPlaceWithValidator.php @@ -1,13 +1,13 @@ -status->Text = "Status: ". $this->Firstname->Text.".".$this->Lastname->Text; - - } - -} - +status->Text = "Status: ". $this->Firstname->Text.".".$this->Lastname->Text; + + } + +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/LargePageStateTest.php b/tests/FunctionalTests/active-controls/protected/pages/LargePageStateTest.php index 1102ffb2..51e56d48 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/LargePageStateTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/LargePageStateTest.php @@ -1,22 +1,22 @@ -Text=" this is a very long label with some text $i:"; - $this->Panel1->Controls[] = $label; - } - } - - function button_clicked($sender, $param) - { - $this->status->Text .= ' Callback Clicked... '; - } -} - +Text=" this is a very long label with some text $i:"; + $this->Panel1->Controls[] = $label; + } + } + + function button_clicked($sender, $param) + { + $this->status->Text .= ' Callback Clicked... '; + } +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/LargePageStateTest2.php b/tests/FunctionalTests/active-controls/protected/pages/LargePageStateTest2.php index 3c3038c2..56f9c68f 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/LargePageStateTest2.php +++ b/tests/FunctionalTests/active-controls/protected/pages/LargePageStateTest2.php @@ -1,22 +1,22 @@ -Text=" this is a very long label with some text $i:"; - $this->Panel1->Controls[] = $label; - } - } - - function button_clicked($sender, $param) - { - $this->status->Text .= ' Callback Clicked... '; - } -} - +Text=" this is a very long label with some text $i:"; + $this->Panel1->Controls[] = $label; + } + } + + function button_clicked($sender, $param) + { + $this->status->Text .= ' Callback Clicked... '; + } +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/Master1.php b/tests/FunctionalTests/active-controls/protected/pages/Master1.php index 173a59f0..1bbcb9c4 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/Master1.php +++ b/tests/FunctionalTests/active-controls/protected/pages/Master1.php @@ -1,7 +1,7 @@ - \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/MessagesPanelTest.php b/tests/FunctionalTests/active-controls/protected/pages/MessagesPanelTest.php index 9a59713d..d3713308 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/MessagesPanelTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/MessagesPanelTest.php @@ -1,16 +1,16 @@ -panel1->setMessage("hello world"); - } - - function hide_clicked($sender, $param) - { - $this->panel1->setMessage(""); - } -} - +panel1->setMessage("hello world"); + } + + function hide_clicked($sender, $param) + { + $this->panel1->setMessage(""); + } +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/MyControl.php b/tests/FunctionalTests/active-controls/protected/pages/MyControl.php index 2c6b7f5b..5ced5d3a 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/MyControl.php +++ b/tests/FunctionalTests/active-controls/protected/pages/MyControl.php @@ -1,8 +1,8 @@ - \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/MyTabPanelTest.php b/tests/FunctionalTests/active-controls/protected/pages/MyTabPanelTest.php index 723af42d..6736138d 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/MyTabPanelTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/MyTabPanelTest.php @@ -1,42 +1,42 @@ -panels as $panel) - { - if($id == $panel) - { - $this->$panel->setAttribute('style', 'display: block;'); - $this->$panel->setVisible(true); - $this->$panel->render($param->NewWriter); - } - else - { - $this->$panel->setVisible(false); - } - } - } - - public function onShowPanelA($sender, $param) - { - $this->showPanel('pnlContentsA', $param); - } - - public function onShowPanelB($sender, $param) - { - $this->showPanel('pnlContentsB', $param); - } - - public function onShowPanelC($sender, $param) - { - $this->showPanel('pnlContentsC', $param); - } -} - - - +panels as $panel) + { + if($id == $panel) + { + $this->$panel->setAttribute('style', 'display: block;'); + $this->$panel->setVisible(true); + $this->$panel->render($param->NewWriter); + } + else + { + $this->$panel->setVisible(false); + } + } + } + + public function onShowPanelA($sender, $param) + { + $this->showPanel('pnlContentsA', $param); + } + + public function onShowPanelB($sender, $param) + { + $this->showPanel('pnlContentsB', $param); + } + + public function onShowPanelC($sender, $param) + { + $this->showPanel('pnlContentsC', $param); + } +} + + + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/NullStateTest.php b/tests/FunctionalTests/active-controls/protected/pages/NullStateTest.php index 0abd8eb5..f6e5071d 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/NullStateTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/NullStateTest.php @@ -1,11 +1,11 @@ lblTest->Text = "Testing"; - } -} + +class NullStateTest extends TPage +{ + public function btnTest_OnCallback($sender,$param) + { + $this->lblTest->Text = "Testing"; + } +} ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/PopulateActiveList.php b/tests/FunctionalTests/active-controls/protected/pages/PopulateActiveList.php index 022f6dad..8a1ba198 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/PopulateActiveList.php +++ b/tests/FunctionalTests/active-controls/protected/pages/PopulateActiveList.php @@ -1,34 +1,34 @@ -list1->Items->clear(); - for($i = 0,$k=count($data); $i<$k; $i++) - { - $item = new TListItem($data[$i], $i); - $this->list1->Items[] = $item; - } - } - - public function populate_list2($sender, $param) - { - $data = array('Hello', 'World', 'Prado'); - $this->list2->Items->clear(); - for($i = 0,$k=count($data); $i<$k; $i++) - { - $item = new TListItem($data[$i], $i); - $this->list2->Items[] = $item; - } - } - - public function list_changed($sender, $param) - { - $text = $sender->SelectedItem ? $sender->SelectedItem->Text : 'Not selected'; - $this->label1->Text = $sender->ID . ': '.$text; - } -} - +list1->Items->clear(); + for($i = 0,$k=count($data); $i<$k; $i++) + { + $item = new TListItem($data[$i], $i); + $this->list1->Items[] = $item; + } + } + + public function populate_list2($sender, $param) + { + $data = array('Hello', 'World', 'Prado'); + $this->list2->Items->clear(); + for($i = 0,$k=count($data); $i<$k; $i++) + { + $item = new TListItem($data[$i], $i); + $this->list2->Items[] = $item; + } + } + + public function list_changed($sender, $param) + { + $text = $sender->SelectedItem ? $sender->SelectedItem->Text : 'Not selected'; + $this->label1->Text = $sender->ID . ': '.$text; + } +} + ?> \ No newline at end of file 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 @@ -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'); - } -} - +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 diff --git a/tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.php b/tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.php index 10c45aa3..eb77073b 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.php @@ -1,28 +1,28 @@ -rad_button_list->SelectedValue){ - case 'yes': - $choice.='Yes :-)'; - break; - case 'no': - $choice.='No :-('; - break; - case 'whynot': - $choice.='Why not ???'; - break; - } - $this->label->Text = $choice; - } - - public function action($sender,$param){ - $this->label->Text = 'Action...'; - } - -} - - +rad_button_list->SelectedValue){ + case 'yes': + $choice.='Yes :-)'; + break; + case 'no': + $choice.='No :-('; + break; + case 'whynot': + $choice.='Why not ???'; + break; + } + $this->label->Text = $choice; + } + + public function action($sender,$param){ + $this->label->Text = 'Action...'; + } + +} + + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/RatingList.php b/tests/FunctionalTests/active-controls/protected/pages/RatingList.php index 98b62e04..8fd879bc 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/RatingList.php +++ b/tests/FunctionalTests/active-controls/protected/pages/RatingList.php @@ -1,34 +1,34 @@ -Rating + $sender->SelectedIndex+1)/2; - $sender->Rating = $newRating; - $sender->Caption = "Rating : ".$newRating; - $sender->Enabled=false; - } - - - function list2_oncallback($sender, $param) - { - } - - function button1_clicked($sender, $param) - { - $this->list1->Enabled = true; - } - - function button2_clicked($sender, $param) - { - $this->list1->Enabled=false; - } - - function button5_clicked($sender, $param) - { - $this->list1->SelectedIndex=3; - } -} - +Rating + $sender->SelectedIndex+1)/2; + $sender->Rating = $newRating; + $sender->Caption = "Rating : ".$newRating; + $sender->Enabled=false; + } + + + function list2_oncallback($sender, $param) + { + } + + function button1_clicked($sender, $param) + { + $this->list1->Enabled = true; + } + + function button2_clicked($sender, $param) + { + $this->list1->Enabled=false; + } + + function button5_clicked($sender, $param) + { + $this->list1->SelectedIndex=3; + } +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/RepeaterWithActiveControls.php b/tests/FunctionalTests/active-controls/protected/pages/RepeaterWithActiveControls.php index c5235dc6..013ffe61 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/RepeaterWithActiveControls.php +++ b/tests/FunctionalTests/active-controls/protected/pages/RepeaterWithActiveControls.php @@ -1,61 +1,61 @@ -IsCallback) - { - $this->repeater1->DataSource = $this->_data; - $this->repeater1->dataBind(); - } - } - - public function label_changed($sender, $param) - { - $index = $sender->getParent()->ItemIndex + 1; - $this->_status .= " Update textbox {$index}: ".$sender->Text; - } - - public function onPreRender($param) - { - parent::onPreRender($param); - if(trim($this->_status)) - $this->label1->Text = $this->_status; - } - - public function enable_edit($sender, $param) - { - if($this->update_button->Enabled==false) - { - for($i = 0; $irepeater1->Items); $i++) - { - $textbox = $this->repeater1->Items[$i]->edit_box; - $textbox->DisplayTextBox = true; - } - $this->update_button->Enabled = true; - $sender->Enabled=false; - } - } - - public function disable_edit($sender, $param) - { - if($this->update_button->Enabled==true) - { - for($i = 0; $irepeater1->Items); $i++) - { - $textbox = $this->repeater1->Items[$i]->edit_box; - $textbox->DisplayTextBox = false; - } - $this->edit_button->Enabled = true; - $sender->Enabled=false; - } - } -} - +IsCallback) + { + $this->repeater1->DataSource = $this->_data; + $this->repeater1->dataBind(); + } + } + + public function label_changed($sender, $param) + { + $index = $sender->getParent()->ItemIndex + 1; + $this->_status .= " Update textbox {$index}: ".$sender->Text; + } + + public function onPreRender($param) + { + parent::onPreRender($param); + if(trim($this->_status)) + $this->label1->Text = $this->_status; + } + + public function enable_edit($sender, $param) + { + if($this->update_button->Enabled==false) + { + for($i = 0; $irepeater1->Items); $i++) + { + $textbox = $this->repeater1->Items[$i]->edit_box; + $textbox->DisplayTextBox = true; + } + $this->update_button->Enabled = true; + $sender->Enabled=false; + } + } + + public function disable_edit($sender, $param) + { + if($this->update_button->Enabled==true) + { + for($i = 0; $irepeater1->Items); $i++) + { + $textbox = $this->repeater1->Items[$i]->edit_box; + $textbox->DisplayTextBox = false; + } + $this->edit_button->Enabled = true; + $sender->Enabled=false; + } + } +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ReplaceContentTest.php b/tests/FunctionalTests/active-controls/protected/pages/ReplaceContentTest.php index a5358d98..a6df2abd 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/ReplaceContentTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/ReplaceContentTest.php @@ -1,42 +1,42 @@ -CallbackClient->appendContent($this->subpanel, $this->replacementContent()); - } - - function prependContent($sender, $param) - { - $this->CallbackClient->prependContent($this->subpanel, $this->replacementContent()); - } - - function insertContentBefore($sender, $param) - { - $this->CallbackClient->insertContentBefore($this->subpanel, $this->replacementContent()); - } - - function insertContentAfter($sender, $param) - { - $this->CallbackClient->insertContentAfter($this->subpanel, $this->replacementContent()); - } - - function replaceContent($sender, $param) - { - $this->CallbackClient->replaceContent($this->subpanel, $this->replacementContent()); - } - - function replacementContent() - { - if($this->check1->Checked) - { - $this->newPanel->Visible=true; - return $this->newPanel; - } - else - return $this->content->Text; - } -} - +CallbackClient->appendContent($this->subpanel, $this->replacementContent()); + } + + function prependContent($sender, $param) + { + $this->CallbackClient->prependContent($this->subpanel, $this->replacementContent()); + } + + function insertContentBefore($sender, $param) + { + $this->CallbackClient->insertContentBefore($this->subpanel, $this->replacementContent()); + } + + function insertContentAfter($sender, $param) + { + $this->CallbackClient->insertContentAfter($this->subpanel, $this->replacementContent()); + } + + function replaceContent($sender, $param) + { + $this->CallbackClient->replaceContent($this->subpanel, $this->replacementContent()); + } + + function replacementContent() + { + if($this->check1->Checked) + { + $this->newPanel->Visible=true; + return $this->newPanel; + } + else + return $this->content->Text; + } +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/Sessioned/PageStateTest.php b/tests/FunctionalTests/active-controls/protected/pages/Sessioned/PageStateTest.php index 4a488107..9d4a7695 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/Sessioned/PageStateTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/Sessioned/PageStateTest.php @@ -1,13 +1,13 @@ -CustomData = $sender->CustomData + 1; - $this->label1->Text = " button1 clicked ".$sender->CustomData." times"; - } -} - +CustomData = $sender->CustomData + 1; + $this->label1->Text = " button1 clicked ".$sender->CustomData." times"; + } +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.php b/tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.php index 9b5a05f7..6cc5a500 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.php @@ -1,26 +1,26 @@ -Text = "muahaha"; - } - - function label1_changed($sender, $param) - { - $this->status->Text = "Status: ". $sender->Text; - } - - function button_clicked($sender, $param) - { - $this->label1->Text = "hahahaha"; - } - - function NewPackageSubject($sender, $param) - { - throw new TException('Exist'); - } -} - +Text = "muahaha"; + } + + function label1_changed($sender, $param) + { + $this->status->Text = "Status: ". $sender->Text; + } + + function button_clicked($sender, $param) + { + $this->label1->Text = "hahahaha"; + } + + function NewPackageSubject($sender, $param) + { + throw new TException('Exist'); + } +} + ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/TestMasterPage.php b/tests/FunctionalTests/active-controls/protected/pages/TestMasterPage.php index dc643e52..170e618b 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/TestMasterPage.php +++ b/tests/FunctionalTests/active-controls/protected/pages/TestMasterPage.php @@ -1,7 +1,7 @@ - \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/TextBoxValidationCallback.php b/tests/FunctionalTests/active-controls/protected/pages/TextBoxValidationCallback.php index cf43bccd..1d2cc92f 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/TextBoxValidationCallback.php +++ b/tests/FunctionalTests/active-controls/protected/pages/TextBoxValidationCallback.php @@ -1,11 +1,11 @@ -City->Text = "City: ".$this->Address->Text . ' Zip: '.$this->ZipCode->Text; - } -} +City->Text = "City: ".$this->Address->Text . ' Zip: '.$this->ZipCode->Text; + } +} ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ValueTriggerCallbackTest.php b/tests/FunctionalTests/active-controls/protected/pages/ValueTriggerCallbackTest.php index a8f83187..69985541 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/ValueTriggerCallbackTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/ValueTriggerCallbackTest.php @@ -1,12 +1,12 @@ -getCallbackParameter(); - $this->label1->Text = "Old = ".$values->OldValue." : New Value = ".$values->NewValue; - } -} - +getCallbackParameter(); + $this->label1->Text = "Old = ".$values->OldValue." : New Value = ".$values->NewValue; + } +} + ?> \ No newline at end of file -- cgit v1.2.3