public function debug($b) { self::$_debug = $b; $this->_conf["debug"] = $b; }
/** * Create an database object * * @return EQDatabase object * * @since 1.0 */ private static function _createDbo($arconf = array()) { ecpimport('database.database'); $conf = self::getConfig(); $host = $conf->host; $user = $conf->user; $password = $conf->password; $database = $conf->db; $prefix = $conf->dbprefix; $debug = $conf->debug; $options = array('host' => $host, 'user' => $user, 'password' => $password, 'database' => $database, 'prefix' => $prefix); $db = ECP_Database::getInstance($options, $arconf); //ERROR handling here $db->debug($debug); return $db; }