You are here

protected function OAuthStorePostgreSQL::sql_printf in Lingotek Translation 7.4

Same name and namespace in other branches
  1. 7.7 lib/oauth-php/library/store/OAuthStorePostgreSQL.php \OAuthStorePostgreSQL::sql_printf()
  2. 7.2 lib/oauth-php/library/store/OAuthStorePostgreSQL.php \OAuthStorePostgreSQL::sql_printf()
  3. 7.3 lib/oauth-php/library/store/OAuthStorePostgreSQL.php \OAuthStorePostgreSQL::sql_printf()
  4. 7.5 lib/oauth-php/library/store/OAuthStorePostgreSQL.php \OAuthStorePostgreSQL::sql_printf()
  5. 7.6 lib/oauth-php/library/store/OAuthStorePostgreSQL.php \OAuthStorePostgreSQL::sql_printf()
6 calls to OAuthStorePostgreSQL::sql_printf()
OAuthStorePostgreSQL::query in lib/oauth-php/library/store/OAuthStorePostgreSQL.php
Perform a query, ignore the results
OAuthStorePostgreSQL::query_all_assoc in lib/oauth-php/library/store/OAuthStorePostgreSQL.php
Perform a query, return all rows
OAuthStorePostgreSQL::query_insert_id in lib/oauth-php/library/store/OAuthStorePostgreSQL.php
Return the id of the last inserted row
OAuthStorePostgreSQL::query_one in lib/oauth-php/library/store/OAuthStorePostgreSQL.php
Perform a query, return the first column of the first row
OAuthStorePostgreSQL::query_row in lib/oauth-php/library/store/OAuthStorePostgreSQL.php
Perform a query, return the first row

... See full list

File

lib/oauth-php/library/store/OAuthStorePostgreSQL.php, line 1915

Class

OAuthStorePostgreSQL

Code

protected function sql_printf($args) {
  $sql = array_shift($args);
  if (count($args) == 1 && is_array($args[0])) {
    $args = $args[0];
  }
  $args = array_map(array(
    $this,
    'sql_escape_string',
  ), $args);
  return vsprintf($sql, $args);
}