public function OAuthStoreSQL::listConsumerApplications in Lingotek Translation 7.4
Same name and namespace in other branches
- 7.7 lib/oauth-php/library/store/OAuthStoreSQL.php \OAuthStoreSQL::listConsumerApplications()
- 7.2 lib/oauth-php/library/store/OAuthStoreSQL.php \OAuthStoreSQL::listConsumerApplications()
- 7.3 lib/oauth-php/library/store/OAuthStoreSQL.php \OAuthStoreSQL::listConsumerApplications()
- 7.5 lib/oauth-php/library/store/OAuthStoreSQL.php \OAuthStoreSQL::listConsumerApplications()
- 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
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;
}