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/DActiveDropDownList2.php | 66 +++----
.../tickets/protected/pages/Issue120.php | 42 ++---
.../tickets/protected/pages/Issue216.php | 26 +--
.../tickets/protected/pages/Layout.php | 44 ++---
.../tickets/protected/pages/Ticket121.php | 20 +-
.../tickets/protected/pages/Ticket191.php | 42 ++---
.../tickets/protected/pages/Ticket21.php | 42 ++---
.../tickets/protected/pages/Ticket239.php | 30 +--
.../tickets/protected/pages/Ticket278.php | 44 ++---
.../tickets/protected/pages/Ticket283.php | 20 +-
.../tickets/protected/pages/Ticket284.php | 20 +-
.../tickets/protected/pages/Ticket284Component.php | 206 ++++++++++----------
.../tickets/protected/pages/Ticket359.php | 20 +-
.../tickets/protected/pages/Ticket384.php | 86 ++++-----
.../tickets/protected/pages/Ticket413.php | 60 +++---
.../tickets/protected/pages/Ticket422.php | 210 ++++++++++-----------
.../tickets/protected/pages/Ticket433.php | 42 ++---
.../tickets/protected/pages/Ticket439.php | 24 +--
.../tickets/protected/pages/Ticket470.php | 46 ++---
.../tickets/protected/pages/Ticket477.php | 26 +--
.../tickets/protected/pages/Ticket484.php | 58 +++---
.../tickets/protected/pages/Ticket488.php | 24 +--
.../tickets/protected/pages/Ticket500.php | 24 +--
.../tickets/protected/pages/Ticket504.php | 48 ++---
.../tickets/protected/pages/Ticket507.php | 48 ++---
.../tickets/protected/pages/Ticket521.php | 30 +--
.../tickets/protected/pages/Ticket526.php | 28 +--
.../tickets/protected/pages/Ticket528.php | 68 +++----
.../tickets/protected/pages/Ticket535.php | 30 +--
.../tickets/protected/pages/Ticket538.php | 202 ++++++++++----------
.../tickets/protected/pages/Ticket542.php | 44 ++---
.../tickets/protected/pages/Ticket54Master.php | 12 +-
.../tickets/protected/pages/Ticket578.php | 24 +--
.../tickets/protected/pages/Ticket585.php | 34 ++--
.../tickets/protected/pages/Ticket586.php | 20 +-
.../tickets/protected/pages/Ticket587.php | 22 +--
.../tickets/protected/pages/Ticket587_reopened.php | 122 ++++++------
.../tickets/protected/pages/Ticket591.php | 16 +-
.../tickets/protected/pages/Ticket598.php | 36 ++--
.../tickets/protected/pages/Ticket603.php | 58 +++---
.../tickets/protected/pages/Ticket660.php | 10 +-
.../protected/pages/Ticket703/Ticket703.php | 60 +++---
.../tickets/protected/pages/Ticket708.php | 58 +++---
.../tickets/protected/pages/Ticket72.php | 24 +--
.../tickets/protected/pages/Ticket93.php | 28 +--
45 files changed, 1122 insertions(+), 1122 deletions(-)
(limited to 'tests/FunctionalTests/tickets/protected')
diff --git a/tests/FunctionalTests/tickets/protected/pages/DActiveDropDownList2.php b/tests/FunctionalTests/tickets/protected/pages/DActiveDropDownList2.php
index 81fdfea7..532b17b0 100644
--- a/tests/FunctionalTests/tickets/protected/pages/DActiveDropDownList2.php
+++ b/tests/FunctionalTests/tickets/protected/pages/DActiveDropDownList2.php
@@ -1,34 +1,34 @@
-setViewState('Opcoes', $val);
- }
-
- public function loadOptions()
- {
- $opcao = $this->getViewState('Opcoes');
-
- switch ($opcao) {
- case "turnos":
- $this->DataTextField="descricao";
- $this->DataValueField="id_turno";
- $opts = array(
- array('id_turno' => 'M', 'descricao' => 'Manhã'),
- array('id_turno' => 'T', 'descricao' => 'Tarde'),
- array('id_turno' => 'N', 'descricao' => 'Noite')
- );
- break;
-
- default:
- throw new TConfigurationException('Falta argumento OPCOES no DActiveDropDownList');
- break;
- }
- $this->setDataSource($opts);
- $this->dataBind();
- }
-}
-
+setViewState('Opcoes', $val);
+ }
+
+ public function loadOptions()
+ {
+ $opcao = $this->getViewState('Opcoes');
+
+ switch ($opcao) {
+ case "turnos":
+ $this->DataTextField="descricao";
+ $this->DataValueField="id_turno";
+ $opts = array(
+ array('id_turno' => 'M', 'descricao' => 'Manhã'),
+ array('id_turno' => 'T', 'descricao' => 'Tarde'),
+ array('id_turno' => 'N', 'descricao' => 'Noite')
+ );
+ break;
+
+ default:
+ throw new TConfigurationException('Falta argumento OPCOES no DActiveDropDownList');
+ break;
+ }
+ $this->setDataSource($opts);
+ $this->dataBind();
+ }
+}
+
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Issue120.php b/tests/FunctionalTests/tickets/protected/pages/Issue120.php
index c04ae93d..ad6431a0 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Issue120.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Issue120.php
@@ -1,22 +1,22 @@
- ddl1 -> setDataSource(
- array(
- 'callback value 1' => 'callback item 1',
- 'callback value 2' => 'callback item 2',
- 'callback value 3' => 'callback item 3',
- 'callback value 4' => 'callback item 4'
- )
- );
- $this -> ddl1 -> dataBind();
-
- }
-}
-
+ ddl1 -> setDataSource(
+ array(
+ 'callback value 1' => 'callback item 1',
+ 'callback value 2' => 'callback item 2',
+ 'callback value 3' => 'callback item 3',
+ 'callback value 4' => 'callback item 4'
+ )
+ );
+ $this -> ddl1 -> dataBind();
+
+ }
+}
+
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Issue216.php b/tests/FunctionalTests/tickets/protected/pages/Issue216.php
index 15491e2e..41eac5e9 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Issue216.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Issue216.php
@@ -1,14 +1,14 @@
-result->setText('Tab ActiveIndex is : '.$this->tabpanel->ActiveViewIndex);
-
- }
-}
-
+result->setText('Tab ActiveIndex is : '.$this->tabpanel->ActiveViewIndex);
+
+ }
+}
+
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Layout.php b/tests/FunctionalTests/tickets/protected/pages/Layout.php
index 6d455371..da23db77 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Layout.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Layout.php
@@ -1,23 +1,23 @@
-getPage()->getPagePath());
- $type = str_replace($num, '', $this->getPage()->getPagePath());
-
- $this->getPage()->setTitle("Verifying $type $num");
- $this->ticketlink->setText("Verifying $type $num");
-
- if(strToLower($type) === 'issue') {
- $this->ticketlink->setNavigateUrl("http://code.google.com/p/prado3/issues/detail?id={$num}");
- }
- else {
- $this->ticketlink->setNavigateUrl("http://trac.pradosoft.com/prado/ticket/{$num}");
- }
-
- }
-}
-
+getPage()->getPagePath());
+ $type = str_replace($num, '', $this->getPage()->getPagePath());
+
+ $this->getPage()->setTitle("Verifying $type $num");
+ $this->ticketlink->setText("Verifying $type $num");
+
+ if(strToLower($type) === 'issue') {
+ $this->ticketlink->setNavigateUrl("http://code.google.com/p/prado3/issues/detail?id={$num}");
+ }
+ else {
+ $this->ticketlink->setNavigateUrl("http://trac.pradosoft.com/prado/ticket/{$num}");
+ }
+
+ }
+}
+
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket121.php b/tests/FunctionalTests/tickets/protected/pages/Ticket121.php
index 1a625d83..d913805c 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket121.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket121.php
@@ -1,11 +1,11 @@
-Result->Text="clicked at ({$param->X},{$param->Y})";
- }
-}
-
+Result->Text="clicked at ({$param->X},{$param->Y})";
+ }
+}
+
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket191.php b/tests/FunctionalTests/tickets/protected/pages/Ticket191.php
index 61c2a253..1b111bed 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket191.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket191.php
@@ -1,22 +1,22 @@
-IsValid)
- $this->Application->clearGlobalState('ticket190');
- }
-
- public function customValidation($sender,$param)
- {
- $param->IsValid=$this->Application->getGlobalState('ticket190')===$this->TextBox->Text;
- }
-
- public function updateGlobal($sender,$param)
- {
- $this->Application->setGlobalState('ticket190',$this->TextBox2->Text);
- }
-}
-
+IsValid)
+ $this->Application->clearGlobalState('ticket190');
+ }
+
+ public function customValidation($sender,$param)
+ {
+ $param->IsValid=$this->Application->getGlobalState('ticket190')===$this->TextBox->Text;
+ }
+
+ public function updateGlobal($sender,$param)
+ {
+ $this->Application->setGlobalState('ticket190',$this->TextBox2->Text);
+ }
+}
+
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket21.php b/tests/FunctionalTests/tickets/protected/pages/Ticket21.php
index 041ba4b7..6a06a0f4 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket21.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket21.php
@@ -1,22 +1,22 @@
-IsPostBack)
- $this->setViewState("clicks", 0);
- }
-
- public function doClick($sender, $param)
- {
- $clicks = $this->getViewState("clicks");
- $clicks++;
- $this->label1->setText("Radio button clicks: $clicks");
- $this->setViewState("clicks", $clicks);
- }
-}
-
+IsPostBack)
+ $this->setViewState("clicks", 0);
+ }
+
+ public function doClick($sender, $param)
+ {
+ $clicks = $this->getViewState("clicks");
+ $clicks++;
+ $this->label1->setText("Radio button clicks: $clicks");
+ $this->setViewState("clicks", $clicks);
+ }
+}
+
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket239.php b/tests/FunctionalTests/tickets/protected/pages/Ticket239.php
index a40c94b5..bbf908b1 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket239.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket239.php
@@ -1,16 +1,16 @@
-Result->Text.=$sender->ID." is activated. ";
- }
-
- public function deactivateView($sender,$param)
- {
- $this->Result->Text.=$sender->ID." is deactivated. ";
- }
-}
-
+Result->Text.=$sender->ID." is activated. ";
+ }
+
+ public function deactivateView($sender,$param)
+ {
+ $this->Result->Text.=$sender->ID." is deactivated. ";
+ }
+}
+
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket278.php b/tests/FunctionalTests/tickets/protected/pages/Ticket278.php
index 1aadee77..2e18fd54 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket278.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket278.php
@@ -1,23 +1,23 @@
-Enabled = $this->check1->Checked;
- }
-
- function validate2_onPostValidate($sender, $param)
- {
- $sender->Enabled = true;
- }
-
- function onPreRender($param)
- {
- parent::onPreRender($param);
- $this->panel1->Style =
- $this->check1->Checked ? "display:block" : "display:none";
- }
-}
-
+Enabled = $this->check1->Checked;
+ }
+
+ function validate2_onPostValidate($sender, $param)
+ {
+ $sender->Enabled = true;
+ }
+
+ function onPreRender($param)
+ {
+ parent::onPreRender($param);
+ $this->panel1->Style =
+ $this->check1->Checked ? "display:block" : "display:none";
+ }
+}
+
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket283.php b/tests/FunctionalTests/tickets/protected/pages/Ticket283.php
index 8426eae4..302ad2da 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket283.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket283.php
@@ -1,11 +1,11 @@
-label1->Text = $sender->Text.' Clicked!';
- }
-}
-
+label1->Text = $sender->Text.' Clicked!';
+ }
+}
+
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket284.php b/tests/FunctionalTests/tickets/protected/pages/Ticket284.php
index 332789ff..f9380b12 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket284.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket284.php
@@ -1,11 +1,11 @@
-
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket284Component.php b/tests/FunctionalTests/tickets/protected/pages/Ticket284Component.php
index da6ad153..4405ca44 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket284Component.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket284Component.php
@@ -1,103 +1,103 @@
-ShowHours && $this->ShowMinutes)
- {
- throw new TConfigurationException(
- 'Invalid OPSDatePicker Config: You cannot specify ShowMinutes="true" while ShowHours="false"'
- );
- }
- }
-
- public function getDatePicker()
- {
- $this->ensureChildControls();
- return $this->getRegisteredObject('datePicker');
- }
-
- public function getHourPicker()
- {
- $this->ensureChildControls();
- return $this->getRegisteredObject('hourPicker');
- }
-
- public function getMinutePicker()
- {
- $this->ensureChildControls();
- return $this->getRegisteredObject('minutePicker');
- }
-
- public function getShowHours()
- {
- return $this->HourPicker->Visible;
- }
-
- public function setShowHours($value)
- {
- $this->HourPicker->Visible = TPropertyValue::ensureBoolean($value);
- }
-
- public function getShowMinutes()
- {
- return $this->MinutePicker->Visible;
- }
-
- public function setShowMinutes($value)
- {
- $this->MinutePicker->Visible = TPropertyValue::ensureBoolean($value);
- }
-
- public function getTimeStamp()
- {
- return strtotime($this->Date);
- }
-
- public function setTimeStamp($value)
- {
- $ts = TPropertyValue::ensureInteger($value);
- $this->DatePicker->TimeStamp = $ts;
- $this->HourPicker->SelectedValue = date('H', $ts);
- $this->MinutePicker->SelectedValue = date('i', $ts);
- }
-
- public function getDate()
- {
- $dateStr = $this->DatePicker->Date;
- if ($this->ShowHours){
- $dateStr .= ' '.$this->HourPicker->SelectedValue;
- }
- if ($this->ShowMinutes){
- $dateStr .= ':'.$this->MinutePicker->SelectedValue;
- }
- return $dateStr;
- }
-
- public function setDate($value)
- {
- $dateStr = TPropertyValue::ensureString($value);
- $this->TimeStamp = strtotime($dateStr);
- }
-
- public function getValidationPropertyValue()
- {
- if ($this->DatePicker->Date === ''){
- return '';
- }
- else{
- return $this->TimeStamp;
- }
- }
- public function getIsValid()
- {
- return $this->_isValid;
- }
- public function setIsValid($value)
- {
- $this->_isValid=TPropertyValue::ensureBoolean($value);
- }
-}
-?>
+ShowHours && $this->ShowMinutes)
+ {
+ throw new TConfigurationException(
+ 'Invalid OPSDatePicker Config: You cannot specify ShowMinutes="true" while ShowHours="false"'
+ );
+ }
+ }
+
+ public function getDatePicker()
+ {
+ $this->ensureChildControls();
+ return $this->getRegisteredObject('datePicker');
+ }
+
+ public function getHourPicker()
+ {
+ $this->ensureChildControls();
+ return $this->getRegisteredObject('hourPicker');
+ }
+
+ public function getMinutePicker()
+ {
+ $this->ensureChildControls();
+ return $this->getRegisteredObject('minutePicker');
+ }
+
+ public function getShowHours()
+ {
+ return $this->HourPicker->Visible;
+ }
+
+ public function setShowHours($value)
+ {
+ $this->HourPicker->Visible = TPropertyValue::ensureBoolean($value);
+ }
+
+ public function getShowMinutes()
+ {
+ return $this->MinutePicker->Visible;
+ }
+
+ public function setShowMinutes($value)
+ {
+ $this->MinutePicker->Visible = TPropertyValue::ensureBoolean($value);
+ }
+
+ public function getTimeStamp()
+ {
+ return strtotime($this->Date);
+ }
+
+ public function setTimeStamp($value)
+ {
+ $ts = TPropertyValue::ensureInteger($value);
+ $this->DatePicker->TimeStamp = $ts;
+ $this->HourPicker->SelectedValue = date('H', $ts);
+ $this->MinutePicker->SelectedValue = date('i', $ts);
+ }
+
+ public function getDate()
+ {
+ $dateStr = $this->DatePicker->Date;
+ if ($this->ShowHours){
+ $dateStr .= ' '.$this->HourPicker->SelectedValue;
+ }
+ if ($this->ShowMinutes){
+ $dateStr .= ':'.$this->MinutePicker->SelectedValue;
+ }
+ return $dateStr;
+ }
+
+ public function setDate($value)
+ {
+ $dateStr = TPropertyValue::ensureString($value);
+ $this->TimeStamp = strtotime($dateStr);
+ }
+
+ public function getValidationPropertyValue()
+ {
+ if ($this->DatePicker->Date === ''){
+ return '';
+ }
+ else{
+ return $this->TimeStamp;
+ }
+ }
+ public function getIsValid()
+ {
+ return $this->_isValid;
+ }
+ public function setIsValid($value)
+ {
+ $this->_isValid=TPropertyValue::ensureBoolean($value);
+ }
+}
+?>
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket359.php b/tests/FunctionalTests/tickets/protected/pages/Ticket359.php
index 1e544e9b..6b15f699 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket359.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket359.php
@@ -1,13 +1,13 @@
IsValid = $param->Value == 'Prado';
- }
-}
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket359 extends TPage
+{
+ function validate_text1($sender, $param)
+ {
+ $param->IsValid = $param->Value == 'Prado';
+ }
+}
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket384.php b/tests/FunctionalTests/tickets/protected/pages/Ticket384.php
index e928632d..b485ef2b 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket384.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket384.php
@@ -1,46 +1,46 @@
AutoCompleteRepeater->setDataSource(array(1, 2));
- $this->AutoCompleteRepeater->dataBind();
- }
-
- public function submitCallback($sender, $param)
- {
- $this->AutoCompleteRepeater->setDataSource(array(1,2,3,4));
- $this->AutoCompleteRepeater->dataBind();
- $this->AutoCompletePanel->render($this->getResponse()->createHtmlWriter());
- }
-
- public function suggestCountries($sender, $param)
- {
- $sender->setDataSource($this->matchCountries($param->getCallbackParameter()));
- $sender->dataBind();
- }
-
- protected function matchCountries($token)
- {
- $info = Prado::createComponent('System.I18N.core.CultureInfo', 'en');
- $list = array();
- $count = 0;
- $token = strtolower($token);
- foreach($info->getCountries() as $country)
- {
- if(strpos(strtolower($country), $token) === 0)
- {
- $list[] = $country;
- $count++;
- if($count > 10) break;
- }
- }
- return $list;
- }
-}
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket384 extends TPage
+{
+ public function initRecursive($namingContainer=null)
+ {
+ parent::initRecursive($namingContainer);
+ $this->AutoCompleteRepeater->setDataSource(array(1, 2));
+ $this->AutoCompleteRepeater->dataBind();
+ }
+
+ public function submitCallback($sender, $param)
+ {
+ $this->AutoCompleteRepeater->setDataSource(array(1,2,3,4));
+ $this->AutoCompleteRepeater->dataBind();
+ $this->AutoCompletePanel->render($this->getResponse()->createHtmlWriter());
+ }
+
+ public function suggestCountries($sender, $param)
+ {
+ $sender->setDataSource($this->matchCountries($param->getCallbackParameter()));
+ $sender->dataBind();
+ }
+
+ protected function matchCountries($token)
+ {
+ $info = Prado::createComponent('System.I18N.core.CultureInfo', 'en');
+ $list = array();
+ $count = 0;
+ $token = strtolower($token);
+ foreach($info->getCountries() as $country)
+ {
+ if(strpos(strtolower($country), $token) === 0)
+ {
+ $list[] = $country;
+ $count++;
+ if($count > 10) break;
+ }
+ }
+ return $list;
+ }
+}
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket413.php b/tests/FunctionalTests/tickets/protected/pages/Ticket413.php
index 1da32b52..c7a7081a 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket413.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket413.php
@@ -1,31 +1,31 @@
-'ITN001','name'=>'Motherboard','quantity'=>1,'price'=>100.00,'imported'=>true),
- array('id'=>'ITN002','name'=>'CPU','quantity'=>1,'price'=>150.00,'imported'=>true),
- array('id'=>'ITN003','name'=>'Harddrive','quantity'=>2,'price'=>80.00,'imported'=>true),
- array('id'=>'ITN004','name'=>'Sound card','quantity'=>1,'price'=>40.00,'imported'=>false));
- public function onLoad($param)
- {
- parent::onLoad($param);
-
- if (!$this->IsPostBack)
- {
- $this->locations_datagrid->setDataSource($this->_data);
- $this->locations_datagrid->dataBind();
- }
-
- }
-
- public function bla($sender, $param)
- {
- $sender->Text = 'a';
- }
-
-}
-
+'ITN001','name'=>'Motherboard','quantity'=>1,'price'=>100.00,'imported'=>true),
+ array('id'=>'ITN002','name'=>'CPU','quantity'=>1,'price'=>150.00,'imported'=>true),
+ array('id'=>'ITN003','name'=>'Harddrive','quantity'=>2,'price'=>80.00,'imported'=>true),
+ array('id'=>'ITN004','name'=>'Sound card','quantity'=>1,'price'=>40.00,'imported'=>false));
+ public function onLoad($param)
+ {
+ parent::onLoad($param);
+
+ if (!$this->IsPostBack)
+ {
+ $this->locations_datagrid->setDataSource($this->_data);
+ $this->locations_datagrid->dataBind();
+ }
+
+ }
+
+ public function bla($sender, $param)
+ {
+ $sender->Text = 'a';
+ }
+
+}
+
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket422.php b/tests/FunctionalTests/tickets/protected/pages/Ticket422.php
index 9a46ff75..85647ae2 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket422.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket422.php
@@ -1,108 +1,108 @@
_listItemsA[] = array("title" => "Please select", "id" => -1,"category" => -1);
- $this->_listItemsA[] = array("title" => "Item A", "id" => 1,"category" => 1);
- $this->_listItemsA[] = array("title" => "Item B", "id" => 2,"category" => 1);
- $this->_listItemsA[] = array("title" => "Item C", "id" => 3,"category" => 1);
- $this->_listItemsA[] = array("title" => "Item D", "id" => 4,"category" => 1);
- $this->_listItemsA[] = array("title" => "Item E", "id" => 5,"category" => 1);
-
- $this->_listItemsB[] = array("title" => "List 2 Item A", "id" => 1,"category" => 1);
- $this->_listItemsB[] = array("title" => "List 2 Item B", "id" => 2,"category" => 1);
- $this->_listItemsB[] = array("title" => "List 2 Item C", "id" => 3,"category" => 1);
- $this->_listItemsB[] = array("title" => "List 2 Item D", "id" => 4,"category" => 2);
- $this->_listItemsB[] = array("title" => "List 2 Item E", "id" => 5,"category" => 2);
- $this->_listItemsB[] = array("title" => "List 2 Item F", "id" => 6,"category" => 2);
- $this->_listItemsB[] = array("title" => "List 2 Item G", "id" => 7,"category" => 3);
- $this->_listItemsB[] = array("title" => "List 2 Item H", "id" => 8,"category" => 3);
- $this->_listItemsB[] = array("title" => "List 2 Item I", "id" => 9,"category" => 3);
- $this->_listItemsB[] = array("title" => "List 2 Item J", "id" => 10,"category" => 4);
- $this->_listItemsB[] = array("title" => "List 2 Item K", "id" => 11,"category" => 4);
- $this->_listItemsB[] = array("title" => "List 2 Item L", "id" => 12,"category" => 4);
-
- $this->list1->DataValueField ='id';
- $this->list1->DataTextField = 'title';
- }
-
- public function onLoad($param)
- {
- parent::onLoad($param);
- if(!$this->IsPostBack)
- {
- $this->list1->DataSource = $this->_listItemsA;
- $this->list1->dataBind();
- }
- }
-
- function list1_changed($sender)
- {
- if ($sender->getSelectedValue() == -1)
- {
- $this->label1->setText("Please select a category");
- $this->list2->setEnabled(false);
- return;
- }
-
- $this->addOptionsToListProblem($sender->getSelectedValue());
- }
-
- function addOptionsToListProblem($parent)
- {
- $foo = array();
- $bar = 0;
- $sel = array("title" => "Please select", "id" => -1,"category" => -1);
- $foo[] = $sel;
- foreach ($this->_listItemsB as $p)
- {
- if ($p["category"] == $parent)
- {
- $foo[] = $p;
- }
- }
-
- $this->list2->DataValueField = 'id';
- $this->list2->DataTextField = 'title';
- $this->list2->DataSource = $foo;
- $this->list2->dataBind();
- $this->list2->setEnabled(true);
- }
-
- function list2_changed($sender)
- {
- $this->label1->setText("Selection 2: ".$sender->getSelectedValue());
- }
-
- function select_index_3()
- {
- $this->list1->setSelectedIndex(3);
- }
-
- function clear_selections()
- {
- $this->list1->clearSelection();
- }
-
- function select_value_2()
- {
- $this->list1->setSelectedValue("value 2");
- }
-
- function select_index_3_plus()
- {
- $this->list1->setSelectedValue("value 3");
- $this->list1_changed($this->list1);
- $this->list2->setSelectedValue("value 3 - item 3");
- }
-}
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket422 extends TPage
+{
+ private $_listItemsA;
+ private $_listItemsB;
+
+ public function onInit($param)
+ {
+ parent::onInit($param);
+ $this->_listItemsA[] = array("title" => "Please select", "id" => -1,"category" => -1);
+ $this->_listItemsA[] = array("title" => "Item A", "id" => 1,"category" => 1);
+ $this->_listItemsA[] = array("title" => "Item B", "id" => 2,"category" => 1);
+ $this->_listItemsA[] = array("title" => "Item C", "id" => 3,"category" => 1);
+ $this->_listItemsA[] = array("title" => "Item D", "id" => 4,"category" => 1);
+ $this->_listItemsA[] = array("title" => "Item E", "id" => 5,"category" => 1);
+
+ $this->_listItemsB[] = array("title" => "List 2 Item A", "id" => 1,"category" => 1);
+ $this->_listItemsB[] = array("title" => "List 2 Item B", "id" => 2,"category" => 1);
+ $this->_listItemsB[] = array("title" => "List 2 Item C", "id" => 3,"category" => 1);
+ $this->_listItemsB[] = array("title" => "List 2 Item D", "id" => 4,"category" => 2);
+ $this->_listItemsB[] = array("title" => "List 2 Item E", "id" => 5,"category" => 2);
+ $this->_listItemsB[] = array("title" => "List 2 Item F", "id" => 6,"category" => 2);
+ $this->_listItemsB[] = array("title" => "List 2 Item G", "id" => 7,"category" => 3);
+ $this->_listItemsB[] = array("title" => "List 2 Item H", "id" => 8,"category" => 3);
+ $this->_listItemsB[] = array("title" => "List 2 Item I", "id" => 9,"category" => 3);
+ $this->_listItemsB[] = array("title" => "List 2 Item J", "id" => 10,"category" => 4);
+ $this->_listItemsB[] = array("title" => "List 2 Item K", "id" => 11,"category" => 4);
+ $this->_listItemsB[] = array("title" => "List 2 Item L", "id" => 12,"category" => 4);
+
+ $this->list1->DataValueField ='id';
+ $this->list1->DataTextField = 'title';
+ }
+
+ public function onLoad($param)
+ {
+ parent::onLoad($param);
+ if(!$this->IsPostBack)
+ {
+ $this->list1->DataSource = $this->_listItemsA;
+ $this->list1->dataBind();
+ }
+ }
+
+ function list1_changed($sender)
+ {
+ if ($sender->getSelectedValue() == -1)
+ {
+ $this->label1->setText("Please select a category");
+ $this->list2->setEnabled(false);
+ return;
+ }
+
+ $this->addOptionsToListProblem($sender->getSelectedValue());
+ }
+
+ function addOptionsToListProblem($parent)
+ {
+ $foo = array();
+ $bar = 0;
+ $sel = array("title" => "Please select", "id" => -1,"category" => -1);
+ $foo[] = $sel;
+ foreach ($this->_listItemsB as $p)
+ {
+ if ($p["category"] == $parent)
+ {
+ $foo[] = $p;
+ }
+ }
+
+ $this->list2->DataValueField = 'id';
+ $this->list2->DataTextField = 'title';
+ $this->list2->DataSource = $foo;
+ $this->list2->dataBind();
+ $this->list2->setEnabled(true);
+ }
+
+ function list2_changed($sender)
+ {
+ $this->label1->setText("Selection 2: ".$sender->getSelectedValue());
+ }
+
+ function select_index_3()
+ {
+ $this->list1->setSelectedIndex(3);
+ }
+
+ function clear_selections()
+ {
+ $this->list1->clearSelection();
+ }
+
+ function select_value_2()
+ {
+ $this->list1->setSelectedValue("value 2");
+ }
+
+ function select_index_3_plus()
+ {
+ $this->list1->setSelectedValue("value 3");
+ $this->list1_changed($this->list1);
+ $this->list2->setSelectedValue("value 3 - item 3");
+ }
+}
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket433.php b/tests/FunctionalTests/tickets/protected/pages/Ticket433.php
index 2e5c1ff7..a87f8f82 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket433.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket433.php
@@ -1,24 +1,24 @@
IsPostBack)
- $this->VoteClick->Text = "BEFORE click";
- }
-
- public function onUpdateVoteClick($sender, $param)
- {
- $sender->Text = 'AFTER click';
- }
-
- public function onUpdateVoteCallback($sender, $param)
- {
- $sender->Text .= ' CALLBACK DONE';
- }
-}
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket433 extends TPage
+{
+ public function onLoad($param)
+ {
+ if(!$this->IsPostBack)
+ $this->VoteClick->Text = "BEFORE click";
+ }
+
+ public function onUpdateVoteClick($sender, $param)
+ {
+ $sender->Text = 'AFTER click';
+ }
+
+ public function onUpdateVoteCallback($sender, $param)
+ {
+ $sender->Text .= ' CALLBACK DONE';
+ }
+}
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket439.php b/tests/FunctionalTests/tickets/protected/pages/Ticket439.php
index eaebc250..dcb46412 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket439.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket439.php
@@ -1,15 +1,15 @@
Service->constructUrl('Home');
- $this->Response->redirect($page);
- }
-}
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket439 extends TPage
+{
+
+ function button_clicked($sender, $param)
+ {
+ $page = $this->Service->constructUrl('Home');
+ $this->Response->redirect($page);
+ }
+}
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket470.php b/tests/FunctionalTests/tickets/protected/pages/Ticket470.php
index 45741176..2e023242 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket470.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket470.php
@@ -1,24 +1,24 @@
-Results->Text = "";
- $this->counter->Text = $this->counter->Text +1;
- $this->activePanelTest->renderControl($param->getNewWriter());
- }
-
- /**
- *function to call when the form is valid (and the linkbutton fired his callback event)
- */
- public function Valid($sender, $param){
- $this->Results->Text = "OK!!!";
- }
-}
-
+Results->Text = "";
+ $this->counter->Text = $this->counter->Text +1;
+ $this->activePanelTest->renderControl($param->getNewWriter());
+ }
+
+ /**
+ *function to call when the form is valid (and the linkbutton fired his callback event)
+ */
+ public function Valid($sender, $param){
+ $this->Results->Text = "OK!!!";
+ }
+}
+
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket477.php b/tests/FunctionalTests/tickets/protected/pages/Ticket477.php
index 49c72b9e..a6309958 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket477.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket477.php
@@ -1,16 +1,16 @@
IsValid=false;
- }
-
- function do_validate_2($sender, $param)
- {
- $param->IsValid=false;
- }
-}
+
+class Ticket477 extends TPage
+{
+ function do_validate_1($sender, $param)
+ {
+ $param->IsValid=false;
+ }
+
+ function do_validate_2($sender, $param)
+ {
+ $param->IsValid=false;
+ }
+}
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket484.php b/tests/FunctionalTests/tickets/protected/pages/Ticket484.php
index 813ccc23..89dac261 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket484.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket484.php
@@ -1,30 +1,30 @@
-Text = "Label ".$i;
- $this->Controls[] = $ctl;
- }
- }
-
- function button2_onclick($sender, $param)
- {
- $this->label1->Text = "Button 1 was clicked ";
- }
-
- function button2_oncallback($sender, $param)
- {
- $this->label1->Text .= "using callback!";
- }
-}
-
+Text = "Label ".$i;
+ $this->Controls[] = $ctl;
+ }
+ }
+
+ function button2_onclick($sender, $param)
+ {
+ $this->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/tickets/protected/pages/Ticket488.php b/tests/FunctionalTests/tickets/protected/pages/Ticket488.php
index e9610d1d..97334f21 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket488.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket488.php
@@ -1,13 +1,13 @@
-IsValid = $this->Password == 'Prado';
- }
-}
-
+IsValid = $this->Password == 'Prado';
+ }
+}
+
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket500.php b/tests/FunctionalTests/tickets/protected/pages/Ticket500.php
index fc7af222..a0b96ed5 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket500.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket500.php
@@ -1,13 +1,13 @@
-Service->constructUrl('Cats.Buy.Browse',array('filter' => 'basket'));
- $this->link1->NavigateUrl = $url;
- }
-}
-
+Service->constructUrl('Cats.Buy.Browse',array('filter' => 'basket'));
+ $this->link1->NavigateUrl = $url;
+ }
+}
+
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket504.php b/tests/FunctionalTests/tickets/protected/pages/Ticket504.php
index 7ad8e989..3d1bdfb6 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket504.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket504.php
@@ -1,25 +1,25 @@
-panels as $panel) {
- if($id == $panel) {
- $this->$panel->setVisible(true);
- } else {
- $this->$panel->setVisible(false);
- }
- }
- }
- public function changePanel($sender,$param){
- $this->showPanel($param->CallbackParameter, $param);
- }
- public function loadData_Callback($sender, $param){
- die("parameter is ".$param->CallbackParameter);
- }
-}
-
+panels as $panel) {
+ if($id == $panel) {
+ $this->$panel->setVisible(true);
+ } else {
+ $this->$panel->setVisible(false);
+ }
+ }
+ }
+ public function changePanel($sender,$param){
+ $this->showPanel($param->CallbackParameter, $param);
+ }
+ public function loadData_Callback($sender, $param){
+ die("parameter is ".$param->CallbackParameter);
+ }
+}
+
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket507.php b/tests/FunctionalTests/tickets/protected/pages/Ticket507.php
index 94cd8aed..ea358e65 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket507.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket507.php
@@ -1,25 +1,25 @@
-list1->SelectionMode="Multiple";
- }
-
- function list1_callback($sender, $param)
- {
- $values = $sender->getSelectedValues();
- $this->label1->setText("Selection: ".implode(', ', $values));
- }
-
- function enable_list()
- {
- $this->list1->enabled = true;
- }
-}
-
+list1->SelectionMode="Multiple";
+ }
+
+ function list1_callback($sender, $param)
+ {
+ $values = $sender->getSelectedValues();
+ $this->label1->setText("Selection: ".implode(', ', $values));
+ }
+
+ function enable_list()
+ {
+ $this->list1->enabled = true;
+ }
+}
+
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket521.php b/tests/FunctionalTests/tickets/protected/pages/Ticket521.php
index d28a777a..e7e65b86 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket521.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket521.php
@@ -1,16 +1,16 @@
-label1->Text = "Button 1 was clicked ";
- }
- public function doSave($s, $p){
- $this->label1->Text .= " on callback ";
-
- }
-
-
-}
+label1->Text = "Button 1 was clicked ";
+ }
+ public function doSave($s, $p){
+ $this->label1->Text .= " on callback ";
+
+ }
+
+
+}
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket526.php b/tests/FunctionalTests/tickets/protected/pages/Ticket526.php
index 9afaf28f..1500ad73 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket526.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket526.php
@@ -1,15 +1,15 @@
-dp->Mode="Button";
- $this->textbox->Text = 'callback';
- $this->activePanel->Enabled="false";
- $this->activePanel->render($p->NewWriter);
- }
-}
-
+dp->Mode="Button";
+ $this->textbox->Text = 'callback';
+ $this->activePanel->Enabled="false";
+ $this->activePanel->render($p->NewWriter);
+ }
+}
+
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket528.php b/tests/FunctionalTests/tickets/protected/pages/Ticket528.php
index c2d1fcbe..2e05dbfd 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket528.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket528.php
@@ -1,35 +1,35 @@
- array('id_turno' => 'M', 'descricao' => 'Manhã'),
- 'T' => array('id_turno' => 'T', 'descricao' => 'Tarde'),
- 'N' => array('id_turno' => 'N', 'descricao' => 'Noite')
- );
-
-
- public function onLoad($param)
- {
- parent::onLoad($param);
- if (!$this->IsPostBack) {
- $this->DDropTurno->loadOptions();
- $this->loadDadosTurno($this->DDropTurno->getSelectedValue());
- }
- }
-
-
- protected function loadDadosTurno($id)
- {
- $this->Codigo->setText(self::$turnos[$id]['id_turno']);
- $this->Descricao->setText(self::$turnos[$id]['descricao']);
- }
-
-
- public function trocaTurno($sender,$param)
- {
- $this->loadDadosTurno($sender->getSelectedValue());
- }
-}
-
+ array('id_turno' => 'M', 'descricao' => 'Manhã'),
+ 'T' => array('id_turno' => 'T', 'descricao' => 'Tarde'),
+ 'N' => array('id_turno' => 'N', 'descricao' => 'Noite')
+ );
+
+
+ public function onLoad($param)
+ {
+ parent::onLoad($param);
+ if (!$this->IsPostBack) {
+ $this->DDropTurno->loadOptions();
+ $this->loadDadosTurno($this->DDropTurno->getSelectedValue());
+ }
+ }
+
+
+ protected function loadDadosTurno($id)
+ {
+ $this->Codigo->setText(self::$turnos[$id]['id_turno']);
+ $this->Descricao->setText(self::$turnos[$id]['descricao']);
+ }
+
+
+ public function trocaTurno($sender,$param)
+ {
+ $this->loadDadosTurno($sender->getSelectedValue());
+ }
+}
+
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket535.php b/tests/FunctionalTests/tickets/protected/pages/Ticket535.php
index 4f9b2f51..705a5474 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket535.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket535.php
@@ -1,16 +1,16 @@
-label1->Text = "radio1 checked:{".$this->radio1->getChecked()."} radio2 checked:{".$this->radio2->getChecked()."} ";
- }
-
- public function group($sender, $param)
- {
- $this->label1->Text = "bad_radio1 checked:{".$this->bad_radio1->getChecked()."} bad_radio2 checked:{".$this->bad_radio2->getChecked()."} ";
- }
-}
-
+label1->Text = "radio1 checked:{".$this->radio1->getChecked()."} radio2 checked:{".$this->radio2->getChecked()."} ";
+ }
+
+ public function group($sender, $param)
+ {
+ $this->label1->Text = "bad_radio1 checked:{".$this->bad_radio1->getChecked()."} bad_radio2 checked:{".$this->bad_radio2->getChecked()."} ";
+ }
+}
+
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket538.php b/tests/FunctionalTests/tickets/protected/pages/Ticket538.php
index 2ad9fd43..2ba0d841 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket538.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket538.php
@@ -1,102 +1,102 @@
-Text= $sender->ClientID . " clicked";
- }
-
- public function checkboxCallback($sender, $param)
- {
- $sender->Text .= ' using callback';
- }
-
- public function readData()
- {
- $data=array(
- array('id'=>'001','name'=>'John','age'=>31),
- array('id'=>'002','name'=>'Mary','age'=>30),
- array('id'=>'003','name'=>'Cary','age'=>20),
- array('id'=>'004','name'=>'Kevin','age'=>65),
- array('id'=>'005','name'=>'Steven','age'=>10),
- array('id'=>'006','name'=>'Josh','age'=>23),
- array('id'=>'007','name'=>'Lary','age'=>54));
- return $data;
- }
-
- //--------------------------------------------------------------------
- // TListBox
- //--------------------------------------------------------------------
-
- public function dataSelector2_Clicked($sender, $param)
- {
- $this->DataViewer2->DataTextField='name';
- $this->DataViewer2->Items->clear();
- foreach ($this->readData() as $index=>$person)
- {
- $item = new TListItem('G1: '.$person['name'].'=>'.$person['age'],$index);
- $item->Attributes->Group = 'test1';
- $this->DataViewer2->Items->add($item);
- }
- foreach ($this->readData() as $index=>$person)
- {
- $item2 = new TListItem('G2: '.$person['name'].'=>'.$person['age'],$index+100);
- $item2->Attributes->Group = 'test2';
- $this->DataViewer2->Items->add($item2);
- }
- $this->DataViewer2->dataBind();
- }
-
- public function selectBtn2_Clicked()
- {
- $text = '';
- foreach ($this->DataViewer2->SelectedIndices as $index)
- {
- $text .= '"'.$this->DataViewer2->Items[$index]->Attributes->Group.'", ';
- }
- $this->ALLog->setText($text);
- }
-
- //--------------------------------------------------------------------
- // TActiveListBox
- //--------------------------------------------------------------------
-
-
- public function dataSelector_Clicked($sender, $param)
- {
- $this->DataViewer->DataTextField='name';
- $this->DataViewer->Items->clear();
- foreach ($this->readData() as $index=>$person)
- {
- $item = new TListItem('G1: '.$person['name'].'=>'.$person['age'],$index);
- $item->Attributes->Group = 'test1';
- $this->DataViewer->Items->add($item);
- }
-
- foreach ($this->readData() as $index=>$person)
- {
- $item2 = new TListItem('G2: '.$person['name'].'=>'.$person['age'],$index+100);
- $item2->Attributes->Group = 'test2';
- $this->DataViewer->Items->add($item2);
- }
- $this->DataViewer->dataBind();
- }
-
- public function selectBtn_Clicked()
- {
- $text = '';
- foreach ($this->DataViewer->SelectedIndices as $index)
- {
- if($this->DataViewer->Items[$index]->Attributes['Group'])
- $text .= $index .'- "'.$this->DataViewer->Items[$index]->Attributes->Group.'", ';
- else
- $text .= $index.',';
- }
- $this->ALLog->setText($text);
- }
-
-}
-
+Text= $sender->ClientID . " clicked";
+ }
+
+ public function checkboxCallback($sender, $param)
+ {
+ $sender->Text .= ' using callback';
+ }
+
+ public function readData()
+ {
+ $data=array(
+ array('id'=>'001','name'=>'John','age'=>31),
+ array('id'=>'002','name'=>'Mary','age'=>30),
+ array('id'=>'003','name'=>'Cary','age'=>20),
+ array('id'=>'004','name'=>'Kevin','age'=>65),
+ array('id'=>'005','name'=>'Steven','age'=>10),
+ array('id'=>'006','name'=>'Josh','age'=>23),
+ array('id'=>'007','name'=>'Lary','age'=>54));
+ return $data;
+ }
+
+ //--------------------------------------------------------------------
+ // TListBox
+ //--------------------------------------------------------------------
+
+ public function dataSelector2_Clicked($sender, $param)
+ {
+ $this->DataViewer2->DataTextField='name';
+ $this->DataViewer2->Items->clear();
+ foreach ($this->readData() as $index=>$person)
+ {
+ $item = new TListItem('G1: '.$person['name'].'=>'.$person['age'],$index);
+ $item->Attributes->Group = 'test1';
+ $this->DataViewer2->Items->add($item);
+ }
+ foreach ($this->readData() as $index=>$person)
+ {
+ $item2 = new TListItem('G2: '.$person['name'].'=>'.$person['age'],$index+100);
+ $item2->Attributes->Group = 'test2';
+ $this->DataViewer2->Items->add($item2);
+ }
+ $this->DataViewer2->dataBind();
+ }
+
+ public function selectBtn2_Clicked()
+ {
+ $text = '';
+ foreach ($this->DataViewer2->SelectedIndices as $index)
+ {
+ $text .= '"'.$this->DataViewer2->Items[$index]->Attributes->Group.'", ';
+ }
+ $this->ALLog->setText($text);
+ }
+
+ //--------------------------------------------------------------------
+ // TActiveListBox
+ //--------------------------------------------------------------------
+
+
+ public function dataSelector_Clicked($sender, $param)
+ {
+ $this->DataViewer->DataTextField='name';
+ $this->DataViewer->Items->clear();
+ foreach ($this->readData() as $index=>$person)
+ {
+ $item = new TListItem('G1: '.$person['name'].'=>'.$person['age'],$index);
+ $item->Attributes->Group = 'test1';
+ $this->DataViewer->Items->add($item);
+ }
+
+ foreach ($this->readData() as $index=>$person)
+ {
+ $item2 = new TListItem('G2: '.$person['name'].'=>'.$person['age'],$index+100);
+ $item2->Attributes->Group = 'test2';
+ $this->DataViewer->Items->add($item2);
+ }
+ $this->DataViewer->dataBind();
+ }
+
+ public function selectBtn_Clicked()
+ {
+ $text = '';
+ foreach ($this->DataViewer->SelectedIndices as $index)
+ {
+ if($this->DataViewer->Items[$index]->Attributes['Group'])
+ $text .= $index .'- "'.$this->DataViewer->Items[$index]->Attributes->Group.'", ';
+ else
+ $text .= $index.',';
+ }
+ $this->ALLog->setText($text);
+ }
+
+}
+
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket542.php b/tests/FunctionalTests/tickets/protected/pages/Ticket542.php
index bcd32a04..59169d64 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket542.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket542.php
@@ -1,23 +1,23 @@
-CallbackClient->slideUp($this->TheBox);
- }
-
- public function blindUp($sender, $param) {
- $this->CallbackClient->blindUp($this->TheBox);
- }
-
- public function slideDown($sender, $param) {
- $this->CallbackClient->slideDown($this->TheBox);
- }
-
- public function blindDown($sender, $param) {
- $this->CallbackClient->blindDown($this->TheBox);
- }
-
-}
-
+CallbackClient->slideUp($this->TheBox);
+ }
+
+ public function blindUp($sender, $param) {
+ $this->CallbackClient->blindUp($this->TheBox);
+ }
+
+ public function slideDown($sender, $param) {
+ $this->CallbackClient->slideDown($this->TheBox);
+ }
+
+ public function blindDown($sender, $param) {
+ $this->CallbackClient->blindDown($this->TheBox);
+ }
+
+}
+
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket54Master.php b/tests/FunctionalTests/tickets/protected/pages/Ticket54Master.php
index 817e7c45..917f45cf 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket54Master.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket54Master.php
@@ -1,7 +1,7 @@
-
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket578.php b/tests/FunctionalTests/tickets/protected/pages/Ticket578.php
index 7d7dbaac..7b7463a2 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket578.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket578.php
@@ -1,13 +1,13 @@
-label1->Text = "Button 1 was clicked : " . htmlspecialchars($this->text1->Text);
- }
-
-}
-
+label1->Text = "Button 1 was clicked : " . htmlspecialchars($this->text1->Text);
+ }
+
+}
+
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket585.php b/tests/FunctionalTests/tickets/protected/pages/Ticket585.php
index 5932146d..1cda7900 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket585.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket585.php
@@ -1,18 +1,18 @@
-Value == "15-03-2007")
- {
- $param->IsValid=false;
- }
- else
- $param->IsValid=true;
- }
-
-}
-
+Value == "15-03-2007")
+ {
+ $param->IsValid=false;
+ }
+ else
+ $param->IsValid=true;
+ }
+
+}
+
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket586.php b/tests/FunctionalTests/tickets/protected/pages/Ticket586.php
index d6fafd0d..574d6f72 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket586.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket586.php
@@ -1,11 +1,11 @@
-label1->Text = $sender->Text . ' Clicked!';
- }
-}
-
+label1->Text = $sender->Text . ' Clicked!';
+ }
+}
+
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket587.php b/tests/FunctionalTests/tickets/protected/pages/Ticket587.php
index a84a876c..21ce7a64 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket587.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket587.php
@@ -1,12 +1,12 @@
-count->getText();
- $this->count->setText( ++$count );
- }
-}
-
+count->getText();
+ $this->count->setText( ++$count );
+ }
+}
+
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket587_reopened.php b/tests/FunctionalTests/tickets/protected/pages/Ticket587_reopened.php
index 7d24e5f6..fea88274 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket587_reopened.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket587_reopened.php
@@ -1,62 +1,62 @@
-label1->setText("Selection 1: ".$sender->getSelectedValue());
- $this->addOptionsToList2($sender->getSelectedValue(),$sender->getSelectedIndex());
- }
-
- function suggest($sender, $param)
- {
- $this->list2->Items->clear();
- for($i = 0; $i < 2; $i++)
- $this->list2->Items[$i] = 'asd 3 - item '.($i+1);
- }
-
- function addOptionsToList2($parent,$index)
- {
- $this->list2->Items->clear();
- for($i = 0; $i < 2+$index; $i++)
- $this->list2->Items[$i] = $parent.' - item '.($i+1);
- $this->list2->setEnabled(true);
- }
-
- function list2_changed($sender)
- {
- $this->label1->setText("Selection 2: ".$sender->getSelectedValue());
- }
-
- function select_index_3()
- {
- $this->list1->setSelectedIndex(3);
- }
-
- function clear_selections()
- {
- $this->list1->clearSelection();
- }
-
- function select_value_2()
- {
- $this->list1->setSelectedValue("value 2");
- }
-
- function select_index_3_plus()
- {
- $this->list1->setSelectedValue("value 3");
- $this->list1_changed($this->list1);
- $this->list2->setSelectedValue("value 3 - item 3");
- }
-
- function do_postback()
- {
- $value = 'List 1: '.$this->list1->selectedValue. ', List 2: '. $this->list2->selectedValue;
- $this->label1->Text = $value;
- }
-}
-
+label1->setText("Selection 1: ".$sender->getSelectedValue());
+ $this->addOptionsToList2($sender->getSelectedValue(),$sender->getSelectedIndex());
+ }
+
+ function suggest($sender, $param)
+ {
+ $this->list2->Items->clear();
+ for($i = 0; $i < 2; $i++)
+ $this->list2->Items[$i] = 'asd 3 - item '.($i+1);
+ }
+
+ function addOptionsToList2($parent,$index)
+ {
+ $this->list2->Items->clear();
+ for($i = 0; $i < 2+$index; $i++)
+ $this->list2->Items[$i] = $parent.' - item '.($i+1);
+ $this->list2->setEnabled(true);
+ }
+
+ function list2_changed($sender)
+ {
+ $this->label1->setText("Selection 2: ".$sender->getSelectedValue());
+ }
+
+ function select_index_3()
+ {
+ $this->list1->setSelectedIndex(3);
+ }
+
+ function clear_selections()
+ {
+ $this->list1->clearSelection();
+ }
+
+ function select_value_2()
+ {
+ $this->list1->setSelectedValue("value 2");
+ }
+
+ function select_index_3_plus()
+ {
+ $this->list1->setSelectedValue("value 3");
+ $this->list1_changed($this->list1);
+ $this->list2->setSelectedValue("value 3 - item 3");
+ }
+
+ function do_postback()
+ {
+ $value = 'List 1: '.$this->list1->selectedValue. ', List 2: '. $this->list2->selectedValue;
+ $this->label1->Text = $value;
+ }
+}
+
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket591.php b/tests/FunctionalTests/tickets/protected/pages/Ticket591.php
index 9e49e835..8616ac02 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket591.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket591.php
@@ -1,9 +1,9 @@
-
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket598.php b/tests/FunctionalTests/tickets/protected/pages/Ticket598.php
index 0456725f..a8c4c397 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket598.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket598.php
@@ -1,19 +1,19 @@
-isPostBack and !$this->isCallBack) {
- $this->Lbl->setText(date("h:m:s"));
- }
- }
- public function startBigTask ($sender, $param) {
- sleep(10); // Simulate task
- }
-
- public function updateLbl($sender, $param) {
- $this->Lbl->SetText(date("h:m:s"));
- }
-}
+isPostBack and !$this->isCallBack) {
+ $this->Lbl->setText(date("h:m:s"));
+ }
+ }
+ public function startBigTask ($sender, $param) {
+ sleep(10); // Simulate task
+ }
+
+ public function updateLbl($sender, $param) {
+ $this->Lbl->SetText(date("h:m:s"));
+ }
+}
?>
\ No newline at end of file
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 @@
-_isHtml = true;
- }
-
- public function switchContentTypeClicked( $sender, $param ) {
- $this->_isHtml = !$this->_isHtml;
- if ( $this->_isHtml ) {
- $this->EditHtmlTextBox->EnableVisualEdit = true;
- $this->EditHtmlTextBox->Text = 'somehtml';
- } else {
- $this->EditHtmlTextBox->EnableVisualEdit = false;
- $this->EditHtmlTextBox->Text = 'plai bla bla';
- }
- }
-
- public function switchContentTypeCallback( $sender, $param ) {
- $this->ContentPanel->render( $param->NewWriter );
- }
-}
-
+_isHtml = true;
+ }
+
+ public function switchContentTypeClicked( $sender, $param ) {
+ $this->_isHtml = !$this->_isHtml;
+ if ( $this->_isHtml ) {
+ $this->EditHtmlTextBox->EnableVisualEdit = true;
+ $this->EditHtmlTextBox->Text = 'somehtml';
+ } 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
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket660.php b/tests/FunctionalTests/tickets/protected/pages/Ticket660.php
index 2785a816..457e3ed8 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket660.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket660.php
@@ -12,15 +12,15 @@ class Ticket660 extends TPage {
$this->A->setText($this->T->getText() . $iso_text);
}
- public function suggest($sender, $param)
- {
+ public function suggest($sender, $param)
+ {
$token=$param->getCallbackParameter();
$sender->setDataSource(array(
1 => 'ABC Token:'.$token,
2 => iconv('UTF-8', 'ISO-8859-1//IGNORE', 'ÄÖÜ').' Token:'.$token
));
- $sender->dataBind();
- }
-
+ $sender->dataBind();
+ }
+
}
?>
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket703/Ticket703.php b/tests/FunctionalTests/tickets/protected/pages/Ticket703/Ticket703.php
index 1b5b638a..eb446077 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket703/Ticket703.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket703/Ticket703.php
@@ -1,31 +1,31 @@
-isPostBack && !$this->isCallback)
- {
- $this->refreshLog();
- }
- }
-
- public function refreshLog ()
- {
- $this->logBox->Text=file_get_contents(prado::getPathOfNameSpace('Ticket703.Logs.LogFile', '.txt'));
- }
-
- public function clearLog ($sender, $param)
- {
- $file=prado::getPathOfNameSpace('Ticket703.Logs.LogFile', '.txt');
- $f=fopen($file,"w");
- fclose($f);
- $this->refreshLog();
- }
-
- public function addLog($sender,$param)
- {
- prado::log($this->logMessage->getText(), TLogger::DEBUG, "Tickets");
- }
-}
+isPostBack && !$this->isCallback)
+ {
+ $this->refreshLog();
+ }
+ }
+
+ public function refreshLog ()
+ {
+ $this->logBox->Text=file_get_contents(prado::getPathOfNameSpace('Ticket703.Logs.LogFile', '.txt'));
+ }
+
+ public function clearLog ($sender, $param)
+ {
+ $file=prado::getPathOfNameSpace('Ticket703.Logs.LogFile', '.txt');
+ $f=fopen($file,"w");
+ fclose($f);
+ $this->refreshLog();
+ }
+
+ public function addLog($sender,$param)
+ {
+ prado::log($this->logMessage->getText(), TLogger::DEBUG, "Tickets");
+ }
+}
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket708.php b/tests/FunctionalTests/tickets/protected/pages/Ticket708.php
index b57aa444..2eca39d9 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket708.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket708.php
@@ -1,30 +1,30 @@
-getIsCallback() && !$this->getIsPostBack())
- {
- $this->grid->dataSource=$this->getData();
- $this->grid->dataBind();
- }
- }
-
- protected function getData()
- {
- return array (
- array ('RadioValue' => 1, 'Text' => 'Radio 1'),
- array ('RadioValue' => 2, 'Text' => 'Radio 2'),
- array ('RadioValue' => 3, 'Text' => 'Radio 3'),
- array ('RadioValue' => 4, 'Text' => 'Radio 4'),
- );
- }
-
- public function ChangeRadio ($sender, $param)
- {
- $this->Result->setText("You have selected Radio Button #".$sender->getValue());
- }
-}
+getIsCallback() && !$this->getIsPostBack())
+ {
+ $this->grid->dataSource=$this->getData();
+ $this->grid->dataBind();
+ }
+ }
+
+ protected function getData()
+ {
+ return array (
+ array ('RadioValue' => 1, 'Text' => 'Radio 1'),
+ array ('RadioValue' => 2, 'Text' => 'Radio 2'),
+ array ('RadioValue' => 3, 'Text' => 'Radio 3'),
+ array ('RadioValue' => 4, 'Text' => 'Radio 4'),
+ );
+ }
+
+ public function ChangeRadio ($sender, $param)
+ {
+ $this->Result->setText("You have selected Radio Button #".$sender->getValue());
+ }
+}
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket72.php b/tests/FunctionalTests/tickets/protected/pages/Ticket72.php
index 02432886..14a8a112 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket72.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket72.php
@@ -1,13 +1,13 @@
-K1->SafeText;
- $a2 = $this->K2->SafeText;
- $this->ResultLabel->Text = $a2;
- }
-}
-
+K1->SafeText;
+ $a2 = $this->K2->SafeText;
+ $this->ResultLabel->Text = $a2;
+ }
+}
+
?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket93.php b/tests/FunctionalTests/tickets/protected/pages/Ticket93.php
index dbdf2cab..dbee4556 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket93.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket93.php
@@ -1,14 +1,14 @@
-PostBackValue;
- }
-}
-
-?>
+PostBackValue;
+ }
+}
+
+?>
--
cgit v1.2.3