summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonTest.php
blob: fce204d1e707fc5d86499764fb84bce62fab2e05 (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
33
34
<?php

class ActiveRadioButtonTest extends TPage
{
	function change_radio1_text()
	{
		$this->radio1->Text = "Hello Radio Button 1";
	}

	function change_radio1_checked()
	{
		$this->radio1->Checked = !$this->radio1->Checked;
	}

	function change_radio2_text()
	{
		$this->radio2->Text = "Radio Button 2 World";
	}

	function change_radio2_checked()
	{
		$this->radio2->Checked = !$this->radio2->Checked;
	}

	function radiobutton_requested($sender, $param)
	{
		$this->label1->Text = "Label 1:".$sender->Text.
			($sender->checked ? ' Checked ' : ' Not Checked');
	}


}

?>