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

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

class Home extends TPage
{
	public function buttonClicked($sender,$param)
	{
		if($param instanceof TCommandEventParameter)
		{
			$this->Result2->Text="Command name: $param->CommandName, Command parameter: $param->CommandParameter";
		}
		else
		{
			$this->Result->Text="You clicked at ($param->X,$param->Y)";
		}
	}
}