|
Elgg
Version master
|
Manage the contents of the api_users table. More...
Public Member Functions | |
| __construct (protected Database $database, protected Crypto $crypto) | |
| Create a new table handler. More... | |
| createApiUser () | |
| Generate a new API user for a site, returning a new keypair on success. More... | |
| getApiUser (string $public_api_key, bool $only_active=true) | |
| Find an API User's details based on the provided public api key. More... | |
| removeApiUser (string $public_api_key) | |
| Revoke an api user key. More... | |
| enableAPIUser (string $public_api_key) | |
| Enable an api user key. More... | |
| disableAPIUser (string $public_api_key) | |
| Disable an api user key. More... | |
Public Attributes | |
| const | TABLE_NAME = 'api_users' |
Manage the contents of the api_users table.
Definition at line 14 of file ApiUsersTable.php.
Create a new table handler.
Definition at line 27 of file ApiUsersTable.php.
| Elgg\Database\ApiUsersTable::createApiUser | ( | ) |
Generate a new API user for a site, returning a new keypair on success.
Definition at line 35 of file ApiUsersTable.php.
| Elgg\Database\ApiUsersTable::disableAPIUser | ( | string | $public_api_key | ) |
Disable an api user key.
| string | $public_api_key | The API Key (public) |
Definition at line 114 of file ApiUsersTable.php.
| Elgg\Database\ApiUsersTable::enableAPIUser | ( | string | $public_api_key | ) |
Enable an api user key.
| string | $public_api_key | The API Key (public) |
Definition at line 99 of file ApiUsersTable.php.
| Elgg\Database\ApiUsersTable::getApiUser | ( | string | $public_api_key, |
| bool | $only_active = true |
||
| ) |
Find an API User's details based on the provided public api key.
These users are not users in the traditional sense.
| string | $public_api_key | The API Key (public) |
| bool | $only_active | Only return if the API key is active (default: true) |
Definition at line 61 of file ApiUsersTable.php.
| Elgg\Database\ApiUsersTable::removeApiUser | ( | string | $public_api_key | ) |
Revoke an api user key.
| string | $public_api_key | The API Key (public) |
Definition at line 80 of file ApiUsersTable.php.
| const Elgg\Database\ApiUsersTable::TABLE_NAME = 'api_users' |
Definition at line 19 of file ApiUsersTable.php.