Zend Framework  3.0
Public Member Functions | Protected Attributes | List of all members
NonPersistent Class Reference

Non-Persistent Authentication Storage. More...

Public Member Functions

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

Protected Attributes

 $data
 Holds the actual auth data.
 

Detailed 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.

Member Function Documentation

clear ( )

Clears contents from storage.

Returns
void

Implements StorageInterface.

isEmpty ( )

Returns true if and only if storage is empty.

Returns
bool

Implements StorageInterface.

read ( )

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

Returns
mixed

Implements StorageInterface.

write (   $contents)

Writes $contents to storage.

Parameters
mixed$contents
Returns
void

Implements StorageInterface.

Member Data Documentation

$data
protected

Holds the actual auth data.