You are here

protected function OAuthStoreMySQLi::query in Lingotek Translation 7.6

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

* Perform a query, ignore the results * *

Parameters

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

Overrides OAuthStoreMySQL::query

2 calls to OAuthStoreMySQLi::query()
OAuthStoreMySQLi::install in lib/oauth-php/library/store/OAuthStoreMySQLi.php
* Initialise the database
OAuthStoreMySQLi::__construct in lib/oauth-php/library/store/OAuthStoreMySQLi.php
* Construct the OAuthStoreMySQLi. * In the options you have to supply either: * - server, username, password and database (for a mysqli_connect) * - conn (for the connection to be used) * *

File

lib/oauth-php/library/store/OAuthStoreMySQLi.php, line 117

Class

OAuthStoreMySQLi

Code

protected function query($sql) {
  $sql = $this
    ->sql_printf(func_get_args());
  if (!($res = mysqli_query($this->conn, $sql))) {
    $this
      ->sql_errcheck($sql);
  }
  if (!is_bool($res)) {
    mysqli_free_result($res) || is_object($res) && get_class($res) == "mysqli_result" ? true : false;
  }
}