public function __toString() { if (E_FW::get_Config('DEBUG')) { return parent::__toString(); } else { return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; } }
public function __construct() { $viewConfig = E_FW::get_Config('VIEW'); if (is_array($viewConfig)) { foreach ($viewConfig as $key => $value) { if (isset($this->{$key})) { $this->{$key} = $value; } } } }
function __construct() { if (is_null($this->dbParams)) { $this->dbParams = E_FW::get_Config('MONGO'); } $this->setDB(); }
function __construct() { E_FW::load_File('cache_Core'); $this->_cache = Cache_Core::getInstance(E_FW::get_Config('CACHE')); }
function __construct() { if (is_null($this->dbParams)) { $this->dbParams = E_FW::get_Config('DSN'); } //如果开启缓存,则延迟连接数据库 if ($this->isCache) { $this->_cacheAnalytics = E_FW::load_Class('cache_TableAnalytics'); } $this->setDB(); }