[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/demos/blog/protected/Common/ -> BlogPage.php (source)

   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 1492 2006-11-06 15:22:08Z 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  ?>


Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7