Template file: Home.page
Class file: Home.php

/ActiveControls/Samples/TTimeTriggeredCallback/Home.php

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
 
class Home extends TPage
{
    public function startClicked($sender,$param)
    {
        $this->time1->startTimer();
    }
 
    public function stopClicked($sender,$param)
    {
        $this->time1->stopTimer();
    }
 
    public function timerCallback($sender,$param)
    {
        $this->label1->Text="Current time is ".date('H:i:s');
    }
 
}
 
?>