UserFrosting API

PDOStorage implements StorageInterface

Store login tokens in database with PDO class.

Tags
author

Louis Charette

Table of Contents

$db Manager
__construct() mixed
findTriplet() int
storeTriplet() mixed
cleanTriplet() mixed
replaceTriplet() Replace current token after successful authentication. mixed
cleanAllTriplets() mixed
cleanExpiredTokens() Remove all expired triplets of all users. mixed

Properties

Methods

__construct()

public __construct( $db : Manager ) : mixed
Parameters
$db : Manager

[description]

Return values
mixed

findTriplet()

public findTriplet( $credential : mixed , $token : string , $persistentToken : string ) : int
Parameters
$credential : mixed
$token : string
$persistentToken : string
Return values
int

storeTriplet()

public storeTriplet( $credential : mixed , $token : string , $persistentToken : string , $expire : int ) : mixed
Parameters
$credential : mixed
$token : string
$persistentToken : string
$expire : int
Return values
mixed

cleanTriplet()

public cleanTriplet( $credential : mixed , $persistentToken : string ) : mixed
Parameters
$credential : mixed
$persistentToken : string
Return values
mixed

replaceTriplet()

Replace current token after successful authentication.

public replaceTriplet( $credential : mixed , $token : string , $persistentToken : string , $expire : int ) : mixed
Parameters
$credential : mixed
$token : string
$persistentToken : string
$expire : int
Return values
mixed

cleanAllTriplets()

public cleanAllTriplets( $credential : mixed ) : mixed
Parameters
$credential : mixed
Return values
mixed

cleanExpiredTokens()

Remove all expired triplets of all users.

public cleanExpiredTokens( $expiryTime : int ) : mixed
Parameters
$expiryTime : int

Timestamp, all tokens before this time will be deleted

Return values
mixed

Search results