You are here

protected function OAuthStorePDO::query_row_assoc in Lingotek Translation 7.4

Same name and namespace in other branches
  1. 7.7 lib/oauth-php/library/store/OAuthStorePDO.php \OAuthStorePDO::query_row_assoc()
  2. 7.2 lib/oauth-php/library/store/OAuthStorePDO.php \OAuthStorePDO::query_row_assoc()
  3. 7.3 lib/oauth-php/library/store/OAuthStorePDO.php \OAuthStorePDO::query_row_assoc()
  4. 7.5 lib/oauth-php/library/store/OAuthStorePDO.php \OAuthStorePDO::query_row_assoc()
  5. 7.6 lib/oauth-php/library/store/OAuthStorePDO.php \OAuthStorePDO::query_row_assoc()

* Perform a query, return the first row * *

Parameters

string sql: * @param vararg arguments (for sprintf) * @return array

Overrides OAuthStoreSQL::query_row_assoc

File

lib/oauth-php/library/store/OAuthStorePDO.php, line 127

Class

OAuthStorePDO

Code

protected function query_row_assoc($sql) {
  $sql = $this
    ->sql_printf(func_get_args());
  $result = $this
    ->query_all_assoc($sql);
  $val = array_pop($result);
  return $val;
}