/** * Inits the Database of this Class */ protected static function dbInit() { if (!isset(self::$db)) { $dbObject = new DBConnect(); $dbObject->initDatabaseFromXML(); self::$db = $dbObject->getDatabase(); self::$db->query('set names "utf8";'); } }
/** * Inits the Database of this Class */ protected static function dbInit() { if (!isset(self::$db)) { $dbObject = new DBConnect(); $dbObject->initDatabaseFromXML(); self::$db = $dbObject->getDatabase(); self::$db->query('set names "utf8";'); } }