summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/TimeTriggeredCallbackTest.php
diff options
context:
space:
mode:
authorwei <>2006-08-27 04:18:31 +0000
committerwei <>2006-08-27 04:18:31 +0000
commit887da1b3668499821f046665b461aeadb0a9fb2e (patch)
tree776f742ea179c823c90e7b81d2262a4344610eca /tests/FunctionalTests/active-controls/protected/pages/TimeTriggeredCallbackTest.php
parent1180e6486139a9c9662984367c4f624394e06f35 (diff)
Adding TActiveImage and TActiveImageButton
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/TimeTriggeredCallbackTest.php')
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/TimeTriggeredCallbackTest.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/TimeTriggeredCallbackTest.php b/tests/FunctionalTests/active-controls/protected/pages/TimeTriggeredCallbackTest.php
new file mode 100644
index 00000000..788857f8
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/TimeTriggeredCallbackTest.php
@@ -0,0 +1,27 @@
+<?php
+
+class TimeTriggeredCallbackTest extends TPage
+{
+ function start_timer($sender, $param)
+ {
+ $this->timer1->startTimer();
+ $this->setViewState('count', 0);
+ }
+
+ function stop_timer($sender, $param)
+ {
+ $this->timer1->stopTimer();
+ }
+
+ function tick($sender, $param)
+ {
+ $count = intval($this->getViewState('count'));
+ $this->setViewState('count', ++$count);
+ if($count > 10)
+ $this->timer1->stopTimer();
+ else
+ $this->label1->Text .= " ".$count;
+ }
+}
+
+?> \ No newline at end of file