Class NonPersistent

Summary

Fully Qualified Name: Zend\Authentication\Storage\NonPersistent
Implements: StorageInterface

Description

Non-Persistent Authentication Storage

Since HTTP Authentication happens again on each request, this will always be re-populated. So there's no need to use sessions, this simple value class will hold the data for rest of the current request.

Methods

Name Description Defined By
clear() Clears contents from storage NonPersistent
isEmpty() Returns true if and only if storage is empty NonPersistent
read() Returns the contents of storage Behavior is undefined when storage is empty. NonPersistent
write() Writes $contents to storage NonPersistent

Method Details

clear()

Clears contents from storage

Returns: void

isEmpty()

Returns true if and only if storage is empty

Returns: bool

read()

Returns the contents of storage Behavior is undefined when storage is empty.

Returns: mixed

write()

Writes $contents to storage

Parameter Name Type Description
$contents mixed

Returns: void

Top