summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages/Ticket671.php
diff options
context:
space:
mode:
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