summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/controls/Layout.php
diff options
context:
space:
mode:
authorxue <>2005-12-28 16:03:34 +0000
committerxue <>2005-12-28 16:03:34 +0000
commit4ed0f6e7c0f2efa7525b1d9ad95e29fe2ce6dcdb (patch)
tree5912f9ba2cc977d0f4b6213e0c62fadd360c703e /demos/quickstart/protected/controls/Layout.php
parentd109f8356d1dd2c66f66d316ee46a51043731206 (diff)
Diffstat (limited to 'demos/quickstart/protected/controls/Layout.php')
-rw-r--r--demos/quickstart/protected/controls/Layout.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/demos/quickstart/protected/controls/Layout.php b/demos/quickstart/protected/controls/Layout.php
new file mode 100644
index 00000000..a82d2fff
--- /dev/null
+++ b/demos/quickstart/protected/controls/Layout.php
@@ -0,0 +1,15 @@
+<?php
+
+class Layout 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