summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/ActiveCheckBoxTest.php
blob: d762ab28c08834b2d68eec2bcd9a1a30e2113305 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php

class ActiveCheckBoxTest extends TPage
{
	function change_checkbox1_text()
	{
		$this->checkbox1->Text = "Hello CheckBox 1";
	}
	
	function change_checkbox1_checked()
	{
		$this->checkbox1->Checked = !$this->checkbox1->Checked;
	}

	function change_checkbox2_text()
	{
		$this->checkbox2->Text = "CheckBox 2 World";
	}
	
	function change_checkbox2_checked()
	{
		$this->checkbox2->Checked = !$this->checkbox2->Checked;
	}
	
	function checkbox_requested($sender, $param)
	{
		$this->label1->Text = "Label 1:".$sender->Text. 
			($sender->checked ? ' Checked ' : ' Not Checked');
	}
}

?>