Ejemplo n.º 1
0
 /**
  * 获得系统的相关参数
  */
 function __construct()
 {
     parent::__construct();
     // filter $_GET
     $this->filterDatas($_GET);
     $this->filterDatas($_POST);
     $this->filterDatas($_COOKIE);
     $this->filterDatas($_SESSION);
 }
Ejemplo n.º 2
0
 /**
  * 构造函数
  *
  * @param Leb_Config
  */
 protected function __construct($params = array())
 {
     parent::__construct($params);
     $this->_initConfig();
     $engine = $this->getEnv('engine');
     $engine = isset($engine) && $engine ? $engine : "Leb_Router_Stand";
     if (!self::$_engine) {
         self::$_engine = new $engine();
     }
 }
Ejemplo n.º 3
0
 /**
  * 构造函数
  * @param array $params
  */
 protected function __construct($params = array())
 {
     parent::__construct($params);
     $errorMapFile = $this->getEnv('errorMapFile');
     if (!empty($errorMapFile)) {
         $this->_errorMapFile = $errorMapFile;
     }
     // 错误触发
     $trggierMethod = $this->getEnv('trggierMethod');
     if (!empty($trggierMethod)) {
         $this->_trigerErrorMethod = $trggierMethod;
     }
 }
Ejemplo n.º 4
0
 /**
  * 构造函数
  * 代理某个具体渲染器的方法
  *
  * @param Leb_Config
  */
 protected function __construct($params = array())
 {
     parent::__construct($params);
     $this->_initConfig();
     $engine = $this->getEnv('engine');
     $engine = isset($engine) && $engine ? $engine : "Leb_View_Stand";
     if (!self::$_engine) {
         $engine_file_name = strtolower(substr($engine, strlen(__CLASS__) + 1)) . '.php';
         require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'view' . DIRECTORY_SEPARATOR . $engine_file_name;
         self::$_engine = new $engine();
     }
     if ($this->isAllowLayout()) {
         require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'view/layout.php';
         $this->_layouter = Leb_View_Layout::getInstance();
     }
     self::$_engine->setTemplateSuffix($this->getEnv('suffix'));
 }
Ejemplo n.º 5
0
 public function __construct()
 {
     parent::__construct();
 }