VuFind API Documentation

AuthHashServiceInterface extends DbServiceInterface

Database service for auth_hash table.

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Wiki

Table of Contents

TYPE_EMAIL  = 'email'
createEntity()  : AuthHashEntityInterface
Create an auth_hash entity object.
deleteAuthHash()  : void
Delete an auth_hash entity object.
getByHashAndType()  : AuthHashEntityInterface|null
Retrieve an object from the database based on hash and type; possibly create a new row if no existing match is found.
getLatestBySessionId()  : AuthHashEntityInterface|null
Retrieve last object from the database based on session id.
persistEntity()  : void
Persist an entity.

Constants

Methods

getByHashAndType()

Retrieve an object from the database based on hash and type; possibly create a new row if no existing match is found.

public getByHashAndType(string $hash, string $type[, bool $create = true ]) : AuthHashEntityInterface|null
Parameters
$hash : string

Hash

$type : string

Hash type

$create : bool = true

Should we create rows that don't already exist?

Return values
AuthHashEntityInterface|null

Search results