You are here

protected function OAuthStorePDO::query_one in Lingotek Translation 7.5

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

* Perform a query, return the first column of the first row * *

Parameters

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

Overrides OAuthStoreSQL::query_one

File

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

Class

OAuthStorePDO

Code

protected function query_one($sql) {
  $sql = $this
    ->sql_printf(func_get_args());
  $row = $this
    ->query_row($sql);
  $val = array_pop($row);
  return $val;
}