Entfernt die DBID aus einer Abfrage (SQL) und gibt die DBID zurueck falls
vorhanden, sonst false.
protected static stripQueryDBID ( string &$qry ) : string | ||
$qry | string | Abfrage |
Résultat | string |
/** * Setzt eine Abfrage (SQL) ab, wechselt die DBID falls vorhanden * * @param $query Abfrage * @return boolean True wenn die Abfrage erfolgreich war (keine DB-Errors * auftreten), sonst false */ function setDBQuery($qry) { if (($qryDBID = rex_sql::stripQueryDBID($qry)) !== false) { $this->selectDB($qryDBID); } return $this->setQuery($qry); }