summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages/Ticket671_reopened.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages/Ticket671_reopened.php')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket671_reopened.php39
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket671_reopened.php b/tests/FunctionalTests/tickets/protected/pages/Ticket671_reopened.php
new file mode 100644
index 00000000..ae45bf96
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket671_reopened.php
@@ -0,0 +1,39 @@
+<?php
+
+Prado::Using ('System.Web.UI.ActiveControls.*');
+
+class Ticket671_reopened extends TPage
+{
+
+ public function save( $sender, $param )
+ {
+ $txt="Save callback called ";
+ if ( $this->isValid )
+ $txt .= "DATA OK";
+ else
+ $txt .= "DATA NOK";
+ $this->Result->Text.= ' --- ' . $txt;
+ }
+
+ public function check( $sender, $param )
+ {
+ //$c=$this->CheckCount;
+ $this->Result->Text="Check callback called (".++$this->CheckCount.")";
+ //$this->CheckCount=$c;
+ if ( $this->testField->getText() == 'Test' )
+ $param->isValid = true;
+ else
+ $param->isValid = false;
+ }
+
+ public function setCheckCount($value)
+ {
+ $this->setViewState('CheckCount', $value);
+ }
+
+ public function getCheckCount()
+ {
+ return $this->getViewState('CheckCount', 0);
+ }
+}
+?> \ No newline at end of file