public static function query($query, $type = 'StdClass', $key_by = null) { $database = DatabaseLayer::getInstance(); $passthru = $database->passthru($query); return $passthru->execute($type); }
/** * @return bool * @throws DatabaseLayer\ConfigurationException */ public function wipe() { if (DatabaseLayer::getInstance()->useCache()) { $cache = DatabaseLayer::getInstance()->getCache(); $cache->flushAll(); return $cache->deleteAll(); } else { $this->index = []; return true; } }