Fr3nch13/CakePHP Utilities

StorageInterface

Describes the methods that any class representing an Auth data storage should comply with.

Tags
mixin

\Cake\Core\InstanceConfigTrait

Table of Contents

Methods

delete()  : void
Delete user record.
read()  : ArrayAccess|array<string|int, mixed>|null
Read user record.
redirectUrl()  : array<string|int, mixed>|string|null
Get/set redirect URL.
write()  : void
Write user record.

Methods

read()

Read user record.

public read() : ArrayAccess|array<string|int, mixed>|null
Return values
ArrayAccess|array<string|int, mixed>|null

redirectUrl()

Get/set redirect URL.

public redirectUrl([mixed $url = null ]) : array<string|int, mixed>|string|null
Parameters
$url : mixed = null

Redirect URL. If null returns current URL. If false deletes currently set URL.

Return values
array<string|int, mixed>|string|null

write()

Write user record.

public write(mixed $user) : void
Parameters
$user : mixed

array or \ArrayAccess User record.


        
On this page

Search results