summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/validators/protected/pages/ConditionalValidation.php
blob: 5bdf9282097c75c69be4b5217888ad4e55517051 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
/*
 * Created on 27/03/2007
 */

class ConditionalValidation extends TPage
{
	function check_validate($sender, $params)
	{
		$sender->enabled = $this->check1->checked;
	}

	function onPreRender($param)
	{
		//always re-enable the validator2 so as to display the client-side validator
		$this->validator2->enabled=true;
	}
}