OaiResumptionServiceInterface
in
Database service interface for OaiResumption.
Tags
Table of Contents
- createAndPersistToken() : OaiResumptionEntityInterface
- Create and persist a new resumption token.
- createEntity() : OaiResumptionEntityInterface
- Create a OaiResumption entity object.
- findToken() : OaiResumptionEntityInterface|null
- Retrieve a row from the database based on primary key; return null if it is not found.
- removeExpired() : void
- Remove all expired tokens from the database.
Methods
createAndPersistToken()
Create and persist a new resumption token.
public
createAndPersistToken(array<string|int, mixed> $params, int $expire) : OaiResumptionEntityInterface
Parameters
- $params : array<string|int, mixed>
-
Parameters associated with the token.
- $expire : int
-
Expiration time for token (Unix timestamp).
Tags
Return values
OaiResumptionEntityInterface —createEntity()
Create a OaiResumption entity object.
public
createEntity() : OaiResumptionEntityInterface
Return values
OaiResumptionEntityInterface —findToken()
Retrieve a row from the database based on primary key; return null if it is not found.
public
findToken(string $token) : OaiResumptionEntityInterface|null
Parameters
- $token : string
-
The resumption token to retrieve.
Return values
OaiResumptionEntityInterface|null —removeExpired()
Remove all expired tokens from the database.
public
removeExpired() : void