/** * 获得系统的相关参数 */ function __construct() { parent::__construct(); // filter $_GET $this->filterDatas($_GET); $this->filterDatas($_POST); $this->filterDatas($_COOKIE); $this->filterDatas($_SESSION); }
/** * 构造函数 * * @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(); } }
/** * 构造函数 * @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; } }
/** * 构造函数 * 代理某个具体渲染器的方法 * * @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')); }
public function __construct() { parent::__construct(); }