From 6228873cf9d6471463d2413e7dfd7447f759baf2 Mon Sep 17 00:00:00 2001 From: "christophe.boulain" <> Date: Wed, 3 Dec 2008 14:22:03 +0000 Subject: Merge from trunk --- .../tickets/protected/pages/Ticket925.php | 76 ++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100755 tests/FunctionalTests/tickets/protected/pages/Ticket925.php (limited to 'tests/FunctionalTests/tickets/protected/pages/Ticket925.php') diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket925.php b/tests/FunctionalTests/tickets/protected/pages/Ticket925.php new file mode 100755 index 00000000..0284bd66 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket925.php @@ -0,0 +1,76 @@ +getViewState('timer1', 0); + } + + public function getTimer2Value() + { + return $this->getViewState('timer2', 0); + } + + public function setTimer1Value($value) + { + $this->setViewState('timer1', $value, 0); + } + + public function setTimer2Value($value) + { + $this->setViewState('timer2', $value, 0); + } + + public function startTimer1($sender, $param) + { + $this->timer1->startTimer(); + } + + public function stopTimer1($sender, $param) + { + $this->timer1->stopTimer(); + } + + public function startTimer2($sender, $param) + { + $this->timer2->startTimer(); + } + + public function stopTimer2($sender, $param) + { + $this->timer2->stopTimer(); + } + + public function changeIntervalTimer1($sender, $param) + { + $this->timer1->setInterval(1); + } + + public function timer1callback ($sender, $param) + { + $this->timer1result->Text .= ($this->Timer1Value+=$this->timer1->Interval).'... '; + if ($this->Timer1Value > 20) + { + $this->timer1Value=0; + $this->timer1result->Text=''; + $this->timer1->stopTimer(); + } + + } + + public function timer2callback ($sender, $param) + { + $this->timer2result->Text .= ($this->Timer2Value+=$this->timer2->Interval).'... '; + if ($this->Timer2Value > 20) + { + $this->timer2Value=0; + $this->timer2result->Text=''; + $this->timer2->stopTimer(); + } + } + +} +?> \ No newline at end of file -- cgit v1.2.3