summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages/Ticket671.php
diff options
context:
space:
mode:
authortof <>2007-09-26 12:57:46 +0000
committertof <>2007-09-26 12:57:46 +0000
commit75293bddc7faea69021f5e29ac9e4df3f04c4f36 (patch)
tree1e7fdf2324844c45fb1fa96a99ed69142f4c1aa2 /tests/FunctionalTests/tickets/protected/pages/Ticket671.php
parentf39661c02e0686848c01017fc51f1cd2ad714909 (diff)
Add test for ticket #671
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages/Ticket671.php')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket671.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket671.php b/tests/FunctionalTests/tickets/protected/pages/Ticket671.php
new file mode 100644
index 00000000..04bd1a7e
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket671.php
@@ -0,0 +1,33 @@
+<?php
+
+prado::using ('System.Web.UI.ActiveControls.*');
+
+class Ticket671 extends TPage
+{
+ public function validateSelection($sender, $param)
+ {
+ $param->setIsValid($param->getValue()==3);
+ }
+
+ public function selectItem ($sender, $param)
+ {
+ $this->lblResult->text="You have selected '".$sender->getSelectedItem()->getText()."'.";
+ if (!$this->getIsValid()) $this->lblResult->text .= " But this is not valid !";
+ }
+
+ public function submit ($sender, $param)
+ {
+ $this->lblResult->text="You have successfully validated the form";
+ }
+
+ public function validateTextBox($sender,$param) {
+ $param->setIsValid(strtolower($param->getValue())=="prado");
+ }
+
+ public function submit2($sender,$param) {
+ $this->lblResult2->text="Thanks !";
+ }
+
+
+}
+?> \ No newline at end of file