summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples/TCustomValidator/Home.php
blob: da0d15b2cb924a177476450a2d006ae016fa426a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

class Home extends TPage
{
	public function serverValidate($sender,$param)
	{
		if($param->Value!=='test')
			$param->IsValid=false;
	}

	public function serverValidateNoControl($sender,$param)
	{
		if($this->TextBox4->Text!=='test')
			$param->IsValid=false;
	}
}

?>