summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/DelayedCallback.php
blob: 1785bd343e17c6e502e5f6870335aa88a79e37ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

class DelayedCallback extends TPage
{
	function callback1($sender, $param)
	{
		$ms = 4;
		sleep($ms);
		$this->status->Text="Callback 1 returned after {$ms}s";
	}

	function callback2($sender, $param)
	{
		$ms = 2;
		sleep($ms);
		$this->status->Text="Callback 2 delayed {$ms}s";
	}

}

?>