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

Prado::using('System.Web.UI.TCommandEventParameter');

class Home extends TPage
{
	public function buttonClicked($sender,$param)
	{
		if($param instanceof TCommandEventParameter)
			$sender->Text="Name: {$param->CommandName}, Param: {$param->CommandParameter}";
		else
			$sender->Text="I'm clicked";
	}
}