Documentation

Csrf extends Helper
in package

Table of Contents

$app  : App
$context  : mixed
__call()  : mixed
__construct()  : mixed
__get()  : mixed
__invoke()  : mixed
generateToken()  : string
isValid()  : bool
token()  : string
initialize()  : mixed

Properties

$context

public mixed $context

Methods

__call()

public __call(mixed $name, mixed $arguments) : mixed
Parameters
$name : mixed
$arguments : mixed
Return values
mixed

__construct()

public __construct(App $app[, mixed $context = null ]) : mixed
Parameters
$app : App
$context : mixed = null
Return values
mixed

__get()

public __get(mixed $name) : mixed
Parameters
$name : mixed
Return values
mixed

__invoke()

public __invoke(mixed $helper) : mixed
Parameters
$helper : mixed
Return values
mixed

generateToken()

public generateToken(string $key[, int|null $expire = null ]) : string
Parameters
$key : string
$expire : int|null = null
Return values
string

isValid()

public isValid(string $key, string $token[, bool $checkpayload = false ]) : bool
Parameters
$key : string
$token : string
$checkpayload : bool = false
Return values
bool

token()

public token(string $key[, bool $generate = false ][, int|null $expire = null ]) : string
Parameters
$key : string
$generate : bool = false
$expire : int|null = null
Return values
string

initialize()

protected initialize() : mixed
Return values
mixed

Search results