summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/validators/protected/pages
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/validators/protected/pages')
-rw-r--r--tests/FunctionalTests/validators/protected/pages/Button.php52
-rw-r--r--tests/FunctionalTests/validators/protected/pages/CheckBox.php52
-rw-r--r--tests/FunctionalTests/validators/protected/pages/ConditionalValidation.php40
-rw-r--r--tests/FunctionalTests/validators/protected/pages/CustomValidator.php28
-rw-r--r--tests/FunctionalTests/validators/protected/pages/ImageButton.php52
-rw-r--r--tests/FunctionalTests/validators/protected/pages/Layout.php12
-rw-r--r--tests/FunctionalTests/validators/protected/pages/LinkButton.php52
7 files changed, 144 insertions, 144 deletions
diff --git a/tests/FunctionalTests/validators/protected/pages/Button.php b/tests/FunctionalTests/validators/protected/pages/Button.php
index 3dbbc7d6..94aaf6c8 100644
--- a/tests/FunctionalTests/validators/protected/pages/Button.php
+++ b/tests/FunctionalTests/validators/protected/pages/Button.php
@@ -1,27 +1,27 @@
-<?php
-
-class Button extends TPage
-{
- public function button1Clicked($sender,$param)
- {
- $this->Result1->Text="Button1 is clicked";
- if($this->IsValid)
- $this->Result1->Text.=' and valid';
- }
-
- public function button2Clicked($sender,$param)
- {
- $this->Result2->Text="Button2 is clicked";
- if($this->IsValid)
- $this->Result2->Text.=' and valid';
- }
-
- public function button3Clicked($sender,$param)
- {
- $this->Result3->Text="Button3 is clicked";
- if($this->IsValid)
- $this->Result3->Text.=' and valid';
- }
-}
-
+<?php
+
+class Button extends TPage
+{
+ public function button1Clicked($sender,$param)
+ {
+ $this->Result1->Text="Button1 is clicked";
+ if($this->IsValid)
+ $this->Result1->Text.=' and valid';
+ }
+
+ public function button2Clicked($sender,$param)
+ {
+ $this->Result2->Text="Button2 is clicked";
+ if($this->IsValid)
+ $this->Result2->Text.=' and valid';
+ }
+
+ public function button3Clicked($sender,$param)
+ {
+ $this->Result3->Text="Button3 is clicked";
+ if($this->IsValid)
+ $this->Result3->Text.=' and valid';
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/validators/protected/pages/CheckBox.php b/tests/FunctionalTests/validators/protected/pages/CheckBox.php
index 700ac171..f29792e0 100644
--- a/tests/FunctionalTests/validators/protected/pages/CheckBox.php
+++ b/tests/FunctionalTests/validators/protected/pages/CheckBox.php
@@ -1,27 +1,27 @@
-<?php
-
-class CheckBox extends TPage
-{
- public function button1Clicked($sender,$param)
- {
- $this->Result1->Text="Button1 is clicked";
- if($this->IsValid)
- $this->Result1->Text.=' and valid';
- }
-
- public function button2Clicked($sender,$param)
- {
- $this->Result2->Text="Button2 is clicked";
- if($this->IsValid)
- $this->Result2->Text.=' and valid';
- }
-
- public function button3Clicked($sender,$param)
- {
- $this->Result3->Text="Button3 is clicked";
- if($this->IsValid)
- $this->Result3->Text.=' and valid';
- }
-}
-
+<?php
+
+class CheckBox extends TPage
+{
+ public function button1Clicked($sender,$param)
+ {
+ $this->Result1->Text="Button1 is clicked";
+ if($this->IsValid)
+ $this->Result1->Text.=' and valid';
+ }
+
+ public function button2Clicked($sender,$param)
+ {
+ $this->Result2->Text="Button2 is clicked";
+ if($this->IsValid)
+ $this->Result2->Text.=' and valid';
+ }
+
+ public function button3Clicked($sender,$param)
+ {
+ $this->Result3->Text="Button3 is clicked";
+ if($this->IsValid)
+ $this->Result3->Text.=' and valid';
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/validators/protected/pages/ConditionalValidation.php b/tests/FunctionalTests/validators/protected/pages/ConditionalValidation.php
index 7756566c..83546617 100644
--- a/tests/FunctionalTests/validators/protected/pages/ConditionalValidation.php
+++ b/tests/FunctionalTests/validators/protected/pages/ConditionalValidation.php
@@ -1,20 +1,20 @@
-<?php
-/*
- * Created on 27/03/2007
- */
-
-class ConditionalValidation extends TPage
-{
- function check_validate($sender, $params)
- {
- $sender->enabled = $this->check1->checked;
- }
-
- function onPreRender($param)
- {
- //always re-enable the validator2 so as to display the client-side validator
- $this->validator2->enabled=true;
- }
-}
-
-?>
+<?php
+/*
+ * Created on 27/03/2007
+ */
+
+class ConditionalValidation extends TPage
+{
+ function check_validate($sender, $params)
+ {
+ $sender->enabled = $this->check1->checked;
+ }
+
+ function onPreRender($param)
+ {
+ //always re-enable the validator2 so as to display the client-side validator
+ $this->validator2->enabled=true;
+ }
+}
+
+?>
diff --git a/tests/FunctionalTests/validators/protected/pages/CustomValidator.php b/tests/FunctionalTests/validators/protected/pages/CustomValidator.php
index ed1f9433..b56a9d8b 100644
--- a/tests/FunctionalTests/validators/protected/pages/CustomValidator.php
+++ b/tests/FunctionalTests/validators/protected/pages/CustomValidator.php
@@ -1,14 +1,14 @@
-<?php
-/*
- * Created on 16/04/2006
- */
-
-class CustomValidator extends TPage
-{
- function CustomValidation($sender, $params)
- {
- $params->isValid = $this->text1->Text == "Prado";
- }
-}
-
-?>
+<?php
+/*
+ * Created on 16/04/2006
+ */
+
+class CustomValidator extends TPage
+{
+ function CustomValidation($sender, $params)
+ {
+ $params->isValid = $this->text1->Text == "Prado";
+ }
+}
+
+?>
diff --git a/tests/FunctionalTests/validators/protected/pages/ImageButton.php b/tests/FunctionalTests/validators/protected/pages/ImageButton.php
index ecedd5bf..65392b75 100644
--- a/tests/FunctionalTests/validators/protected/pages/ImageButton.php
+++ b/tests/FunctionalTests/validators/protected/pages/ImageButton.php
@@ -1,27 +1,27 @@
-<?php
-
-class ImageButton extends TPage
-{
- public function button1Clicked($sender,$param)
- {
- $this->Result1->Text="Button1 is clicked";
- if($this->IsValid)
- $this->Result1->Text.=' and valid';
- }
-
- public function button2Clicked($sender,$param)
- {
- $this->Result2->Text="Button2 is clicked";
- if($this->IsValid)
- $this->Result2->Text.=' and valid';
- }
-
- public function button3Clicked($sender,$param)
- {
- $this->Result3->Text="Button3 is clicked";
- if($this->IsValid)
- $this->Result3->Text.=' and valid';
- }
-}
-
+<?php
+
+class ImageButton extends TPage
+{
+ public function button1Clicked($sender,$param)
+ {
+ $this->Result1->Text="Button1 is clicked";
+ if($this->IsValid)
+ $this->Result1->Text.=' and valid';
+ }
+
+ public function button2Clicked($sender,$param)
+ {
+ $this->Result2->Text="Button2 is clicked";
+ if($this->IsValid)
+ $this->Result2->Text.=' and valid';
+ }
+
+ public function button3Clicked($sender,$param)
+ {
+ $this->Result3->Text="Button3 is clicked";
+ if($this->IsValid)
+ $this->Result3->Text.=' and valid';
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/validators/protected/pages/Layout.php b/tests/FunctionalTests/validators/protected/pages/Layout.php
index ba96038b..7f5e5802 100644
--- a/tests/FunctionalTests/validators/protected/pages/Layout.php
+++ b/tests/FunctionalTests/validators/protected/pages/Layout.php
@@ -1,7 +1,7 @@
-<?php
-
-class Layout extends TTemplateControl
-{
-}
-
+<?php
+
+class Layout extends TTemplateControl
+{
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/validators/protected/pages/LinkButton.php b/tests/FunctionalTests/validators/protected/pages/LinkButton.php
index 5130dd01..2b5a3c23 100644
--- a/tests/FunctionalTests/validators/protected/pages/LinkButton.php
+++ b/tests/FunctionalTests/validators/protected/pages/LinkButton.php
@@ -1,27 +1,27 @@
-<?php
-
-class LinkButton extends TPage
-{
- public function button1Clicked($sender,$param)
- {
- $this->Result1->Text="Button1 is clicked";
- if($this->IsValid)
- $this->Result1->Text.=' and valid';
- }
-
- public function button2Clicked($sender,$param)
- {
- $this->Result2->Text="Button2 is clicked";
- if($this->IsValid)
- $this->Result2->Text.=' and valid';
- }
-
- public function button3Clicked($sender,$param)
- {
- $this->Result3->Text="Button3 is clicked";
- if($this->IsValid)
- $this->Result3->Text.=' and valid';
- }
-}
-
+<?php
+
+class LinkButton extends TPage
+{
+ public function button1Clicked($sender,$param)
+ {
+ $this->Result1->Text="Button1 is clicked";
+ if($this->IsValid)
+ $this->Result1->Text.=' and valid';
+ }
+
+ public function button2Clicked($sender,$param)
+ {
+ $this->Result2->Text="Button2 is clicked";
+ if($this->IsValid)
+ $this->Result2->Text.=' and valid';
+ }
+
+ public function button3Clicked($sender,$param)
+ {
+ $this->Result3->Text="Button3 is clicked";
+ if($this->IsValid)
+ $this->Result3->Text.=' and valid';
+ }
+}
+
?> \ No newline at end of file