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(mixed $apiKey, mixed $dataAccessId[, bool $readOnly = false ]) : mixed
Parameters
- $apiKey : mixed
-
int id of ApiKey
- $dataAccessId : mixed
-
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(mixed $apiKey, mixed $dataAccessIds) : mixed
Parameters
- $apiKey : mixed
-
int id of ApiKey
- $dataAccessIds : mixed
-
array Ids of DataAccess entries that still exist