summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/DelayedCallback.php
blob: dc0b8b3db4673931253c699f9dd1a741d5c0517c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?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";
	}

}