ApiKeyRepository
extends EntityRepository
in package
ApiKeyRepository
Tags
Table of Contents
Methods
- addNewDataAccessApiKey() : mixed
- Add or edit an existing DataAccessApiKey entry.
- removeOldDataAccessApiKeys() : mixed
- Delete all DataAccessApiKey entries that do not have a DataAccess entry located in the $dataAccessIds array.
Methods
addNewDataAccessApiKey()
Add or edit an existing DataAccessApiKey entry.
public
addNewDataAccessApiKey( $apiKey, $dataAccessId[, bool $readOnly = false ]) : mixed
Parameters
- $apiKey :
-
int id of ApiKey
- $dataAccessId :
-
int id of DataAccess
- $readOnly : bool = false
-
bool if the API key has read-only access.
Tags
removeOldDataAccessApiKeys()
Delete all DataAccessApiKey entries that do not have a DataAccess entry located in the $dataAccessIds array.
public
removeOldDataAccessApiKeys( $apiKey, $dataAccessIds) : mixed