summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages/Ticket191.php
blob: 61c2a25356762d5ea7400edf7cbceb2aa62813d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

class Ticket191 extends TPage
{
	public function buttonClicked($sender,$param)
	{
		if($this->IsValid)
			$this->Application->clearGlobalState('ticket190');
	}

	public function customValidation($sender,$param)
	{
		$param->IsValid=$this->Application->getGlobalState('ticket190')===$this->TextBox->Text;
	}

	public function updateGlobal($sender,$param)
	{
		$this->Application->setGlobalState('ticket190',$this->TextBox2->Text);
	}
}

?>