You are here

public function OAuthStorePostgreSQL::listConsumerApplications in Lingotek Translation 7.3

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

List of all registered applications. Data returned has not sensitive information and therefore is suitable for public displaying.

Parameters

int $begin:

int $total:

Return value

array

Overrides OAuthStoreAbstract::listConsumerApplications

File

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

Class

OAuthStorePostgreSQL

Code

public function listConsumerApplications($begin = 0, $total = 25) {
  $rs = $this
    ->query_all_assoc('
                SELECT    osr_id                    as id,
                        osr_enabled                as enabled,
                        osr_status                 as status,
                        osr_issue_date            as issue_date,
                        osr_application_uri        as application_uri,
                        osr_application_title    as application_title,
                        osr_application_descr    as application_descr
                FROM oauth_server_registry
                ORDER BY osr_application_title
                ');

  // TODO: pagination
  return $rs;
}