You are here

protected function OAuthStorePostgreSQL::query_all_assoc in Lingotek Translation 7.7

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

Perform a query, return all rows

Parameters

string sql:

vararg arguments (for sprintf):

Return value

array

6 calls to OAuthStorePostgreSQL::query_all_assoc()
OAuthStorePostgreSQL::listConsumerApplications in lib/oauth-php/library/store/OAuthStorePostgreSQL.php
List of all registered applications. Data returned has not sensitive information and therefore is suitable for public displaying.
OAuthStorePostgreSQL::listConsumers in lib/oauth-php/library/store/OAuthStorePostgreSQL.php
Fetch a list of all consumer keys, secrets etc. Returns the public (user_id is null) and the keys owned by the user
OAuthStorePostgreSQL::listConsumerTokens in lib/oauth-php/library/store/OAuthStorePostgreSQL.php
Fetch a list of all consumer tokens accessing the account of the given user.
OAuthStorePostgreSQL::listLog in lib/oauth-php/library/store/OAuthStorePostgreSQL.php
Get a page of entries from the log. Returns the last 100 records matching the options given.
OAuthStorePostgreSQL::listServers in lib/oauth-php/library/store/OAuthStorePostgreSQL.php
Get a list of all consumers from the consumer registry. The consumer keys belong to the user or are public (user id is null)

... See full list

File

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

Class

OAuthStorePostgreSQL

Code

protected function query_all_assoc($sql) {
  $sql = $this
    ->sql_printf(func_get_args());
  if (!($res = pg_query($this->conn, $sql))) {
    $this
      ->sql_errcheck($sql);
  }
  $rs = array();
  while ($row = pg_fetch_assoc($res)) {
    $rs[] = $row;
  }
  pg_free_result($res);
  return $rs;
}