summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/ActiveControls/Samples/TCallback/Home.php
blob: 21ee145e4eaa4e9b3eaf7c03f222460fda756fd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

class Home extends TPage
{
	public function callback1_Requested($sender,$param)
	{
		$this->label1->Text="You clicked the div, didn't you?";
	}

	public function buttonClicked($sender,$param)
	{
		$this->label1->Text="This is a label";
	}

	public function callback2_Requested($sender,$param)
	{
		$parameters=$param->CallbackParameter;
		$this->labelParam1->Text = THttpUtility::htmlEncode($parameters->Param1);
		$this->labelParam2->Text = THttpUtility::htmlEncode($parameters->Param2);
		$this->labelParam3->Text = THttpUtility::htmlEncode($parameters->Param3);
	}
}