diff options
| author | ctrlaltca <> | 2012-07-12 11:21:01 +0000 | 
|---|---|---|
| committer | ctrlaltca <> | 2012-07-12 11:21:01 +0000 | 
| commit | 903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 (patch) | |
| tree | e08bf04f0823650a231227ac3499121270172a23 /demos/quickstart/protected/controls/DocLink.php | |
| parent | 3e4e6e66aeb3f8fea4e1eb4237498ef9d2358f63 (diff) | |
standardize the use of unix eol; use svn properties to enforce native eol
Diffstat (limited to 'demos/quickstart/protected/controls/DocLink.php')
| -rw-r--r-- | demos/quickstart/protected/controls/DocLink.php | 60 | 
1 files changed, 30 insertions, 30 deletions
diff --git a/demos/quickstart/protected/controls/DocLink.php b/demos/quickstart/protected/controls/DocLink.php index e8ca7dfa..12b8e898 100644 --- a/demos/quickstart/protected/controls/DocLink.php +++ b/demos/quickstart/protected/controls/DocLink.php @@ -1,31 +1,31 @@ -<?php
 -
 -class DocLink extends THyperLink
 -{
 -	const BASE_URL='http://www.pradosoft.com/docs/manual';
 -
 -	public function getClassPath()
 -	{
 -		return $this->getViewState('ClassPath','');
 -	}
 -
 -	public function setClassPath($value)
 -	{
 -		$this->setViewState('ClassPath',$value,'');
 -	}
 -
 -	public function onPreRender($param)
 -	{
 -		parent::onPreRender($param);
 -		$paths=explode('.',$this->getClassPath());
 -		if(count($paths)>1)
 -		{
 -			$classFile=array_pop($paths).'.html';
 -			$this->setNavigateUrl(self::BASE_URL . '/' . implode('.',$paths) . '/' . $classFile);
 -			if($this->getText() === '')
 -				$this->setText('API Manual');
 -		}
 -	}
 -}
 -
 +<?php + +class DocLink extends THyperLink +{ +	const BASE_URL='http://www.pradosoft.com/docs/manual'; + +	public function getClassPath() +	{ +		return $this->getViewState('ClassPath',''); +	} + +	public function setClassPath($value) +	{ +		$this->setViewState('ClassPath',$value,''); +	} + +	public function onPreRender($param) +	{ +		parent::onPreRender($param); +		$paths=explode('.',$this->getClassPath()); +		if(count($paths)>1) +		{ +			$classFile=array_pop($paths).'.html'; +			$this->setNavigateUrl(self::BASE_URL . '/' . implode('.',$paths) . '/' . $classFile); +			if($this->getText() === '') +				$this->setText('API Manual'); +		} +	} +} +  ?>
\ No newline at end of file  | 
