Fr3nch13/CakePHP Utilities

MemoryStorage
in package
implements StorageInterface

Memory based non-persistent storage for authenticated user record.

Table of Contents

Interfaces

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

Properties

$_redirectUrl  : array<string|int, mixed>|string|null
Redirect URL.
$_user  : ArrayAccess|array<string|int, mixed>|null
User record.

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.

Properties

$_redirectUrl

Redirect URL.

protected array<string|int, mixed>|string|null $_redirectUrl

$_user

User record.

protected ArrayAccess|array<string|int, mixed>|null $_user

Methods

delete()

Delete user record.

public delete() : void
Tags
inheritDoc

read()

Read user record.

public read() : ArrayAccess|array<string|int, mixed>|null
Tags
inheritDoc
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.

Tags
inheritDoc
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.

Tags
inheritDoc

        
On this page

Search results