summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages/Layout.php
blob: b971fb1c54ec0358a73aa8c0398454e81c254999 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

class Layout extends TTemplateControl
{
	public function onLoad($param)
	{
		$num	= str_replace(array('Ticket', 'Issue'), '', $this->getPage()->getPagePath());
		$type	= str_replace($num, '', $this->getPage()->getPagePath());
		
		$this->getPage()->setTitle("Verifying $type $num");
		$this->ticketlink->setText("Verifying $type $num");
		
		//TODO New issues will link to https://github.com/pradosoft/prado/issues/{$num}
		if(strToLower($type) === 'issue') {
			$this->ticketlink->setNavigateUrl("http://code.google.com/p/prado3/issues/detail?id={$num}");	
		}
		else {
			$this->ticketlink->setNavigateUrl("http://trac.pradosoft.com/prado/ticket/{$num}");	
		}
		
	}
}

?>