Subversion-Projekte lars-tiefland.prado

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
/**
3
 * BlogPage class file
4
 *
5
 * @author Qiang Xue <qiang.xue@gmail.com>
6
 * @link http://www.pradosoft.com/
7
 * @copyright Copyright &copy; 2006 PradoSoft
8
 * @license http://www.pradosoft.com/license/
9
 * @version $Id: BlogPage.php 1509 2006-11-25 20:51:43Z xue $
10
 */
11
 
12
/**
13
 * BlogPage class
14
 *
15
 * @author Qiang Xue <qiang.xue@gmail.com>
16
 * @link http://www.pradosoft.com/
17
 * @copyright Copyright &copy; 2006 PradoSoft
18
 * @license http://www.pradosoft.com/license/
19
 */
20
class BlogPage extends TPage
21
{
22
	public function onPreInit($param)
23
	{
24
		parent::onPreInit($param);
25
		$this->Theme=$this->Application->Parameters['ThemeName'];
26
	}
27
 
28
	public function getDataAccess()
29
	{
30
		return $this->getApplication()->getModule('data');
31
	}
32
 
33
	public function gotoDefaultPage()
34
	{
35
		$this->gotoPage($this->Service->DefaultPage);
36
	}
37
 
38
	public function gotoPage($pagePath,$getParameters=null)
39
	{
40
		$this->Response->redirect($this->Service->constructUrl($pagePath,$getParameters,false));
41
	}
42
 
43
	public function reportError($errorCode)
44
	{
45
		$this->gotoPage('ErrorReport',array('id'=>$errorCode));
46
	}
47
}
48
 
49
?>