- Full name:
\App\Helper\Csrf
- Parent class:
\Lime\Helper
public generateToken(string $key, ?int $expire = null): string
Parameters:
Parameter | Type | Description |
---|---|---|
$key |
string | |
$expire |
?int |
public token(string $key, bool $generate = false, ?int $expire = null): string
Parameters:
Parameter | Type | Description |
---|---|---|
$key |
string | |
$generate |
bool | |
$expire |
?int |
public isValid(string $key, string $token, bool $checkpayload = false): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$key |
string | |
$token |
string | |
$checkpayload |
bool |
public __construct(\Lime\App $app, mixed $context = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$app |
\Lime\App | |
$context |
mixed |
protected initialize(): mixed
public __call(mixed $name, mixed $arguments): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
mixed | |
$arguments |
mixed |
public __invoke(mixed $helper): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$helper |
mixed |
public __get(mixed $name): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
mixed |