summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected
diff options
context:
space:
mode:
authorctrlaltca <>2012-07-12 11:21:01 +0000
committerctrlaltca <>2012-07-12 11:21:01 +0000
commit903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 (patch)
treee08bf04f0823650a231227ac3499121270172a23 /tests/FunctionalTests/tickets/protected
parent3e4e6e66aeb3f8fea4e1eb4237498ef9d2358f63 (diff)
standardize the use of unix eol; use svn properties to enforce native eol
Diffstat (limited to 'tests/FunctionalTests/tickets/protected')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/DActiveDropDownList2.php66
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Issue120.php42
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Issue216.php26
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Layout.php44
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket121.php20
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket191.php42
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket21.php42
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket239.php30
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket278.php44
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket283.php20
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket284.php20
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket284Component.php206
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket359.php20
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket384.php86
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket413.php60
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket422.php210
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket433.php42
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket439.php24
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket470.php46
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket477.php26
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket484.php58
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket488.php24
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket500.php24
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket504.php48
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket507.php48
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket521.php30
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket526.php28
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket528.php68
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket535.php30
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket538.php202
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket542.php44
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket54Master.php12
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket578.php24
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket585.php34
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket586.php20
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket587.php22
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket587_reopened.php122
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket591.php16
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket598.php36
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket603.php58
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket660.php10
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket703/Ticket703.php60
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket708.php58
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket72.php24
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket93.php28
45 files changed, 1122 insertions, 1122 deletions
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 @@
-<?php
-Prado::using('System.Web.UI.ActiveControls.*');
-class DActiveDropDownList2 extends TActiveDropDownList
-{
- public function setOpcoes($val)
- {
- $this->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();
- }
-}
-
+<?php
+Prado::using('System.Web.UI.ActiveControls.*');
+class DActiveDropDownList2 extends TActiveDropDownList
+{
+ public function setOpcoes($val)
+ {
+ $this->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 @@
-<?php
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Issue120 extends TPage
-{
- public function buttonClickCallback($sender, $param)
- {
-
- $this -> 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();
-
- }
-}
-
+<?php
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Issue120 extends TPage
+{
+ public function buttonClickCallback($sender, $param)
+ {
+
+ $this -> 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 @@
-<?php
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Issue216 extends TPage
-{
- public function buttonClickCallback($sender, $param)
- {
-
- $this->result->setText('Tab ActiveIndex is : '.$this->tabpanel->ActiveViewIndex);
-
- }
-}
-
+<?php
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Issue216 extends TPage
+{
+ public function buttonClickCallback($sender, $param)
+ {
+
+ $this->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 @@
-<?php
-
-class Layout extends TTemplateControl
-{
- public function onLoad($param)
- {
- $num = str_replace(array('Ticket', 'Issue'), '', $this->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}");
- }
-
- }
-}
-
+<?php
+
+class Layout extends TTemplateControl
+{
+ public function onLoad($param)
+ {
+ $num = str_replace(array('Ticket', 'Issue'), '', $this->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 @@
-<?php
-
-class Ticket121 extends TPage
-{
- public function buttonClicked($sender,$param)
- {
- $this->Result->Text="clicked at ({$param->X},{$param->Y})";
- }
-}
-
+<?php
+
+class Ticket121 extends TPage
+{
+ public function buttonClicked($sender,$param)
+ {
+ $this->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 @@
-<?php
-
-class Ticket191 extends TPage
-{
- public function buttonClicked($sender,$param)
- {
- if($this->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);
- }
-}
-
+<?php
+
+class Ticket191 extends TPage
+{
+ public function buttonClicked($sender,$param)
+ {
+ if($this->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 @@
-<?php
-
-class Ticket21 extends TPage
-{
- public function onLoad($param)
- {
- parent::onLoad($param);
-
- if(!$this->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);
- }
-}
-
+<?php
+
+class Ticket21 extends TPage
+{
+ public function onLoad($param)
+ {
+ parent::onLoad($param);
+
+ if(!$this->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 @@
-<?php
-
-class Ticket239 extends TPage
-{
- public function activateView($sender,$param)
- {
- $this->Result->Text.=$sender->ID." is activated. ";
- }
-
- public function deactivateView($sender,$param)
- {
- $this->Result->Text.=$sender->ID." is deactivated. ";
- }
-}
-
+<?php
+
+class Ticket239 extends TPage
+{
+ public function activateView($sender,$param)
+ {
+ $this->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 @@
-<?php
-
-class Ticket278 extends TPage
-{
- function validator2_onValidate($sender, $param)
- {
- $sender->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";
- }
-}
-
+<?php
+
+class Ticket278 extends TPage
+{
+ function validator2_onValidate($sender, $param)
+ {
+ $sender->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 @@
-<?php
-
-class Ticket283 extends TPage
-{
- function button_clicked($sender, $param)
- {
- $this->label1->Text = $sender->Text.' Clicked!';
- }
-}
-
+<?php
+
+class Ticket283 extends TPage
+{
+ function button_clicked($sender, $param)
+ {
+ $this->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 @@
-<?php
-
-class Ticket284 extends TPage
-{
- function checkUserAvailability()
- {
-
- }
-}
-
+<?php
+
+class Ticket284 extends TPage
+{
+ function checkUserAvailability()
+ {
+
+ }
+}
+
?> \ 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 @@
-<?php
-
-class Ticket284Component extends TTemplateControl implements IValidatable
-{
- private $_isValid;
- public function onPreRender($param)
- {
- if (!$this->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);
- }
-}
-?>
+<?php
+
+class Ticket284Component extends TTemplateControl implements IValidatable
+{
+ private $_isValid;
+ public function onPreRender($param)
+ {
+ if (!$this->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 @@
<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Ticket359 extends TPage
-{
- function validate_text1($sender, $param)
- {
- $param->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 @@
<?php
-
-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;
- }
-}
+
+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 @@
-<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Ticket413 extends TPage
-{
- private $_data = array(
- array('id'=>'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';
- }
-
-}
-
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket413 extends TPage
+{
+ private $_data = array(
+ array('id'=>'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 @@
<?php
-
-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");
- }
-}
+
+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 @@
<?php
-
-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';
- }
-}
+
+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 @@
<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Ticket439 extends TPage
-{
-
- function button_clicked($sender, $param)
- {
- $page = $this->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 @@
-<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Ticket470 extends TPage
-{
- /**
- * Increase the reload counter and render the activepanel content
- */
- public function Reload($sender, $param){
- $this->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!!!";
- }
-}
-
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket470 extends TPage
+{
+ /**
+ * Increase the reload counter and render the activepanel content
+ */
+ public function Reload($sender, $param){
+ $this->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 @@
<?php
-
-class Ticket477 extends TPage
-{
- function do_validate_1($sender, $param)
- {
- $param->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 @@
-<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Ticket484 extends TPage
-{
-
- function onLoad($param)
- {
- new TActiveButton;
- for ($i = 0; $i<1500; $i++)
- {
- $ctl = Prado::createComponent("TLabel");
- $ctl->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!";
- }
-}
-
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket484 extends TPage
+{
+
+ function onLoad($param)
+ {
+ new TActiveButton;
+ for ($i = 0; $i<1500; $i++)
+ {
+ $ctl = Prado::createComponent("TLabel");
+ $ctl->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 @@
-<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Ticket488 extends TPage
-{
- function login($sender,$param)
- {
- //$param->IsValid = $this->Password == 'Prado';
- }
-}
-
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket488 extends TPage
+{
+ function login($sender,$param)
+ {
+ //$param->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 @@
-<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-class Ticket500 extends TPage
-{
- function set_url()
- {
- $url=$this->Service->constructUrl('Cats.Buy.Browse',array('filter' => 'basket'));
- $this->link1->NavigateUrl = $url;
- }
-}
-
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket500 extends TPage
+{
+ function set_url()
+ {
+ $url=$this->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 @@
-<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Ticket504 extends TPage
-{
- private $panels = array('panelA', 'panelB', 'panelC','panelD',);
- private function showPanel($id, $param) {
- foreach($this->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);
- }
-}
-
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket504 extends TPage
+{
+ private $panels = array('panelA', 'panelB', 'panelC','panelD',);
+ private function showPanel($id, $param) {
+ foreach($this->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 @@
-<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-class Ticket507 extends TPage
-{
-
- public function onLoad($s)
- {
- //the following fixed the static declaration on the above
- $this->list1->SelectionMode="Multiple";
- }
-
- function list1_callback($sender, $param)
- {
- $values = $sender->getSelectedValues();
- $this->label1->setText("Selection: ".implode(', ', $values));
- }
-
- function enable_list()
- {
- $this->list1->enabled = true;
- }
-}
-
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket507 extends TPage
+{
+
+ public function onLoad($s)
+ {
+ //the following fixed the static declaration on the above
+ $this->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 @@
-<?php
-
-class Ticket521 extends TPage
-{
-
- public function doOnClick($s, $p){
- $this->label1->Text = "Button 1 was clicked ";
- }
- public function doSave($s, $p){
- $this->label1->Text .= " on callback ";
-
- }
-
-
-}
+<?php
+
+class Ticket521 extends TPage
+{
+
+ public function doOnClick($s, $p){
+ $this->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 @@
-<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-class Ticket526 extends TPage
-{
- public function callback($s, $p)
- {
- $this->dp->Mode="Button";
- $this->textbox->Text = 'callback';
- $this->activePanel->Enabled="false";
- $this->activePanel->render($p->NewWriter);
- }
-}
-
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket526 extends TPage
+{
+ public function callback($s, $p)
+ {
+ $this->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 @@
-<?php
-Prado::using('System.Web.UI.ActiveControls.*');
-class Ticket528 extends TPage
-{
- public static $turnos = array(
- 'M' => 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());
- }
-}
-
+<?php
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket528 extends TPage
+{
+ public static $turnos = array(
+ 'M' => 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 @@
-<?php
-Prado::using('System.Web.UI.ActiveControls.*');
-class Ticket535 extends TPage
-{
- public function noGroup($sender, $param)
- {
- $this->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()."} ";
- }
-}
-
+<?php
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket535 extends TPage
+{
+ public function noGroup($sender, $param)
+ {
+ $this->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 @@
-<?php
-// $Id: Home.php 1405 2006-09-10 01:03:56Z wei $
-Prado::using('System.Web.UI.ActiveControls.*');
-class Ticket538 extends TPage
-{
- public function checkboxClicked($sender,$param)
- {
- $sender->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);
- }
-
-}
-
+<?php
+// $Id: Home.php 1405 2006-09-10 01:03:56Z wei $
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket538 extends TPage
+{
+ public function checkboxClicked($sender,$param)
+ {
+ $sender->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 @@
-<?php
-Prado::using('System.Web.UI.ActiveControls.*');
-class Ticket542 extends TPage {
-
- public function slideUp($sender, $param) {
- $this->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);
- }
-
-}
-
+<?php
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket542 extends TPage {
+
+ public function slideUp($sender, $param) {
+ $this->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 @@
-<?php
-
-class Ticket54Master extends TTemplateControl
-{
-}
-
+<?php
+
+class Ticket54Master extends TTemplateControl
+{
+}
+
?> \ 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 @@
-<?php
-Prado::using('System.Web.UI.ActiveControls.*');
-class Ticket578 extends TPage
-{
-
- function button2_onclick($sender, $param)
- {
- $this->label1->Text = "Button 1 was clicked : " . htmlspecialchars($this->text1->Text);
- }
-
-}
-
+<?php
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket578 extends TPage
+{
+
+ function button2_onclick($sender, $param)
+ {
+ $this->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 @@
-<?php
-Prado::using('System.Web.UI.ActiveControls.*');
-class Ticket585 extends TPage
-{
-
- public function ChkDate ($sender, $param)
- {
- if ($param->Value == "15-03-2007")
- {
- $param->IsValid=false;
- }
- else
- $param->IsValid=true;
- }
-
-}
-
+<?php
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket585 extends TPage
+{
+
+ public function ChkDate ($sender, $param)
+ {
+ if ($param->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 @@
-<?php
-
-class Ticket586 extends TPage
-{
- function button_clicked($sender, $param)
- {
- $this->label1->Text = $sender->Text . ' Clicked!';
- }
-}
-
+<?php
+
+class Ticket586 extends TPage
+{
+ function button_clicked($sender, $param)
+ {
+ $this->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 @@
-<?php
-Prado::using('System.Web.UI.ActiveControls.*');
-class Ticket587 extends TPage
-{
- public function onTriggerCallback( $sender, $param )
- {
- $count = (int) $this->count->getText();
- $this->count->setText( ++$count );
- }
-}
-
+<?php
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket587 extends TPage
+{
+ public function onTriggerCallback( $sender, $param )
+ {
+ $count = (int) $this->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 @@
-<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Ticket587_reopened extends TPage
-{
- function list1_changed($sender)
- {
- $this->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;
- }
-}
-
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket587_reopened extends TPage
+{
+ function list1_changed($sender)
+ {
+ $this->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 @@
-<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Ticket591 extends TPage
-{
-}
-
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket591 extends TPage
+{
+}
+
?> \ 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 @@
-<?php
-Prado::using('System.Web.UI.ActiveControls.*');
-class Ticket598 extends TPage
-{
-public function onLoad ($param) {
- parent::onLoad($param);
- if (!$this->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"));
- }
-}
+<?php
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket598 extends TPage
+{
+public function onLoad ($param) {
+ parent::onLoad($param);
+ if (!$this->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 @@
-<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Ticket603 extends TPage
-{
- protected $_isHtml;
-
- public function onLoad($param) {
- parent::onLoad($param);
- $this->_isHtml = true;
- }
-
- public function switchContentTypeClicked( $sender, $param ) {
- $this->_isHtml = !$this->_isHtml;
- if ( $this->_isHtml ) {
- $this->EditHtmlTextBox->EnableVisualEdit = true;
- $this->EditHtmlTextBox->Text = '<b>somehtml</b>';
- } else {
- $this->EditHtmlTextBox->EnableVisualEdit = false;
- $this->EditHtmlTextBox->Text = 'plai bla bla';
- }
- }
-
- public function switchContentTypeCallback( $sender, $param ) {
- $this->ContentPanel->render( $param->NewWriter );
- }
-}
-
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket603 extends TPage
+{
+ protected $_isHtml;
+
+ public function onLoad($param) {
+ parent::onLoad($param);
+ $this->_isHtml = true;
+ }
+
+ public function switchContentTypeClicked( $sender, $param ) {
+ $this->_isHtml = !$this->_isHtml;
+ if ( $this->_isHtml ) {
+ $this->EditHtmlTextBox->EnableVisualEdit = true;
+ $this->EditHtmlTextBox->Text = '<b>somehtml</b>';
+ } else {
+ $this->EditHtmlTextBox->EnableVisualEdit = false;
+ $this->EditHtmlTextBox->Text = 'plai bla bla';
+ }
+ }
+
+ public function switchContentTypeCallback( $sender, $param ) {
+ $this->ContentPanel->render( $param->NewWriter );
+ }
+}
+
?> \ No newline at end of file
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 @@
-<?php
-
-class Ticket703 extends TPage {
- public function onLoad ($param)
- {
- parent::onLoad($param);
- if (!$this->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");
- }
-}
+<?php
+
+class Ticket703 extends TPage {
+ public function onLoad ($param)
+ {
+ parent::onLoad($param);
+ if (!$this->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 @@
-<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-class Ticket708 extends TPage
-{
- public function onLoad ($param)
- {
- if (!$this->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());
- }
-}
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket708 extends TPage
+{
+ public function onLoad ($param)
+ {
+ if (!$this->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 @@
-<?php
-
-class Ticket72 extends TPage
-{
- public function ButtonClick($sender,$param)
- {
- $a1 = $this->K1->SafeText;
- $a2 = $this->K2->SafeText;
- $this->ResultLabel->Text = $a2;
- }
-}
-
+<?php
+
+class Ticket72 extends TPage
+{
+ public function ButtonClick($sender,$param)
+ {
+ $a1 = $this->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 @@
-<?php
-/*
- * Created on 13/04/2006
- */
-
-class Ticket93 extends TPage
-{
- public function buttonClicked($sender,$param)
- {
- echo 'postback triggered with value '.$param->PostBackValue;
- }
-}
-
-?>
+<?php
+/*
+ * Created on 13/04/2006
+ */
+
+class Ticket93 extends TPage
+{
+ public function buttonClicked($sender,$param)
+ {
+ echo 'postback triggered with value '.$param->PostBackValue;
+ }
+}
+
+?>