You are here

public function OAuthStoreSQL::listConsumerApplications in Lingotek Translation 7.4

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

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

Parameters

int $begin: * @param int $total * @return array

Overrides OAuthStoreAbstract::listConsumerApplications

File

lib/oauth-php/library/store/OAuthStoreSQL.php, line 1546

Class

OAuthStoreSQL

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;
}