protected function OAuthStorePDO::query_all_assoc in Lingotek Translation 7.4
Same name and namespace in other branches
- 7.7 lib/oauth-php/library/store/OAuthStorePDO.php \OAuthStorePDO::query_all_assoc()
- 7.2 lib/oauth-php/library/store/OAuthStorePDO.php \OAuthStorePDO::query_all_assoc()
- 7.3 lib/oauth-php/library/store/OAuthStorePDO.php \OAuthStorePDO::query_all_assoc()
- 7.5 lib/oauth-php/library/store/OAuthStorePDO.php \OAuthStorePDO::query_all_assoc()
- 7.6 lib/oauth-php/library/store/OAuthStorePDO.php \OAuthStorePDO::query_all_assoc()
* Perform a query, ignore the results * *
Parameters
string sql: * @param vararg arguments (for sprintf) * @return array
Overrides OAuthStoreSQL::query_all_assoc
1 call to OAuthStorePDO::query_all_assoc()
- OAuthStorePDO::query_row_assoc in lib/
oauth-php/ library/ store/ OAuthStorePDO.php - * Perform a query, return the first row * *
File
- lib/
oauth-php/ library/ store/ OAuthStorePDO.php, line 101
Class
Code
protected function query_all_assoc($sql) {
$sql = $this
->sql_printf(func_get_args());
$result = array();
try {
$stmt = $this->conn
->query($sql);
$result = $stmt
->fetchAll(PDO::FETCH_ASSOC);
} catch (PDOException $e) {
$this
->sql_errcheck($sql);
}
return $result;
}