summaryrefslogtreecommitdiff
path: root/demos/controls/protected/pages/HomePage.php
blob: d7f7e1be31c1570cb4912a744735c532d5efefd4 (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
<?php

class HomePage extends TPage
{
	public function onPreInit($param)
	{
		parent::onPreInit($param);
		if(!$this->User->IsGuest)
			$this->Theme='';
	}

	public function testClick($sender,$param)
	{
		if($sender->BackColor==='')
			$sender->BackColor='blue';
		else
			$sender->BackColor='';
		$this->TextBox->focus();
	}

	public function linkClicked($sender,$param)
	{
		$sender->Text="Hello World";
	}
}

?>