summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples/TButton/Home.php
diff options
context:
space:
mode:
authorxue <>2006-01-21 03:57:34 +0000
committerxue <>2006-01-21 03:57:34 +0000
commit1540d094408633a6b01b333b193e731a75457c17 (patch)
tree30763d6bd04fd20ed57227df005eb1565ad47380 /demos/quickstart/protected/pages/Controls/Samples/TButton/Home.php
parentbaf2eb12bc99905ad18fadaa4a542a0d109f9245 (diff)
Added TButton demo (incomplete).
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples/TButton/Home.php')
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TButton/Home.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TButton/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TButton/Home.php
new file mode 100644
index 00000000..f18072f2
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/TButton/Home.php
@@ -0,0 +1,14 @@
+<?php
+
+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";
+ }
+}
+
+?> \ No newline at end of file