summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/controls/SampleLayout.php
diff options
context:
space:
mode:
authorxue <>2005-12-28 20:59:09 +0000
committerxue <>2005-12-28 20:59:09 +0000
commitf481e13ebf72336ed2dc90c8ec9f5d4db5b62664 (patch)
tree2b1c6f373a114cdacc462d8f90b1798467e4e679 /demos/quickstart/protected/controls/SampleLayout.php
parente8b60312037e54c34a06d6f57d7c21946cf3cd1f (diff)
Diffstat (limited to 'demos/quickstart/protected/controls/SampleLayout.php')
-rw-r--r--demos/quickstart/protected/controls/SampleLayout.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/demos/quickstart/protected/controls/SampleLayout.php b/demos/quickstart/protected/controls/SampleLayout.php
new file mode 100644
index 00000000..ee7f41ff
--- /dev/null
+++ b/demos/quickstart/protected/controls/SampleLayout.php
@@ -0,0 +1,15 @@
+<?php
+
+class SampleLayout extends TTemplateControl
+{
+ public function toggleTopicPanel($sender,$param)
+ {
+ $this->TopicPanel->Visible=!$this->TopicPanel->Visible;
+ if($this->TopicPanel->Visible)
+ $sender->Text="Hide TOC";
+ else
+ $sender->Text="Show TOC";
+ }
+}
+
+?> \ No newline at end of file