Subversion-Projekte lars-tiefland.prado

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
 
3
class DocLink extends THyperLink
4
{
5
	const BASE_URL='http://www.pradosoft.com/docs/manual';
6
 
7
	public function getClassPath()
8
	{
9
		return $this->getViewState('ClassPath','');
10
	}
11
 
12
	public function setClassPath($value)
13
	{
14
		$this->setViewState('ClassPath',$value,'');
15
	}
16
 
17
	public function onPreRender($param)
18
	{
19
		parent::onPreRender($param);
20
		$paths=explode('.',$this->getClassPath());
21
		if(count($paths)>1)
22
		{
23
			$classFile=array_pop($paths).'.html';
24
			$this->setNavigateUrl(self::BASE_URL . '/' . implode('.',$paths) . '/' . $classFile);
25
			if($this->getText() === '')
26
				$this->setText('API Manual');
27
		}
28
	}
29
}
30
 
31
?>