summaryrefslogtreecommitdiff
path: root/buildscripts/chmbuilder/classes/pages/Classes.php
blob: aeaf0a0a357eee5fc57bd67317b57e7c5c900ea8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

class Classes extends TPage
{
	public function onLoad($param)
	{
		parent::onLoad($param);
			$dataFile=Prado::getPathOfNamespace('Application.Data.classes','.data');
			$classes=unserialize(file_get_contents($dataFile));
			$data=array();
			$baseUrl=$this->Request->ApplicationUrl;
			foreach(array_keys($classes) as $className)
				$data["$className.html"]=$className;
			$this->ClassList->DataSource=$data;
			$this->ClassList->dataBind();
	}
}

?>