summaryrefslogtreecommitdiff
path: root/demos/composer/protected/pages/Layout.php
blob: 2309df6bb5e647e1fa5d3044453cdd602428332f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?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";
	}
}