summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/controls/SampleLayout.php
blob: ee7f41ffaff00209dd56ea5f1dbb897915b6fe5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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";
	}
}

?>