diff options
| author | ctrlaltca@gmail.com <> | 2011-06-02 17:44:51 +0000 | 
|---|---|---|
| committer | ctrlaltca@gmail.com <> | 2011-06-02 17:44:51 +0000 | 
| commit | 3490b6226263b05d980d040a8fbf933c23979ab6 (patch) | |
| tree | cc9d446640c13e072c909aef3b6784e8fad5bcf5 /demos/quickstart/protected/pages/ActiveControls/Samples/TCallback/Home.php | |
| parent | 6818eb71061580a636831b8e6c0ba8aca2c3420b (diff) | |
documentation updates: TCallback, TEventTriggeredCallback,  TValueTriggeredCallback, TTimeTriggeredCallback
Diffstat (limited to 'demos/quickstart/protected/pages/ActiveControls/Samples/TCallback/Home.php')
| -rw-r--r-- | demos/quickstart/protected/pages/ActiveControls/Samples/TCallback/Home.php | 24 | 
1 files changed, 24 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TCallback/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TCallback/Home.php new file mode 100644 index 00000000..e7f39967 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TCallback/Home.php @@ -0,0 +1,24 @@ +<?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); +	} +} + +?>
\ No newline at end of file  | 
