You are here

protected function OAuthStorePDO::query in Lingotek Translation 7.6

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

* Perform a query, ignore the results * *

Parameters

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

Overrides OAuthStoreSQL::query

1 call to OAuthStorePDO::query()
OAuthStorePDO::__construct in lib/oauth-php/library/store/OAuthStorePDO.php
* Construct the OAuthStorePDO. * In the options you have to supply either: * - dsn, username, password and database (for a new PDO connection) * - conn (for the connection to be used) * *

File

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

Class

OAuthStorePDO

Code

protected function query($sql) {
  $sql = $this
    ->sql_printf(func_get_args());
  try {
    $this->lastaffectedrows = $this->conn
      ->exec($sql);
    if ($this->lastaffectedrows === FALSE) {
      $this
        ->sql_errcheck($sql);
    }
  } catch (PDOException $e) {
    $this
      ->sql_errcheck($sql);
  }
}