summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages/Ticket598.php
blob: 0456725f0489b8d08c3585942daf97b5fcb9adf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
Prado::using('System.Web.UI.ActiveControls.*');
class Ticket598 extends TPage
{
public function onLoad ($param) {
		parent::onLoad($param);
		if (!$this->isPostBack and !$this->isCallBack) {
			$this->Lbl->setText(date("h:m:s"));
		}
	}
	public function startBigTask ($sender, $param) {
		sleep(10); // Simulate task
	}

	public function updateLbl($sender, $param) {
		$this->Lbl->SetText(date("h:m:s"));
	}
}
?>