package Default

 Methods

Initializes the priority queue.

__construct() 

add()

add(\Zend\Authentication\Storage\StorageInterface $storage, integer $priority = 1

Parameters

$storage

\Zend\Authentication\Storage\StorageInterface

$priority

integer

Clear all storage in the chain.

clear() 
see
inherited_from \Zend\Authentication\Storage\StorageInterface::clear()

Loop over the queue of storage until a storage is found that is non-empty. If such storage is not found, then this chain storage itself is empty.

isEmpty() 

In case a non-empty storage is found then this chain storage is also non-empty. Report that, but also make sure that all storage with higher priorty that are empty are filled.

see
inherited_from \Zend\Authentication\Storage\StorageInterface::isEmpty()

If the chain is non-empty then the storage with the top priority is guaranteed to be filled. Return its value.

read() 

Behavior is undefined when storage is empty.

see
inherited_from \Zend\Authentication\Storage\StorageInterface::read()

Write the new $contents to all storage in the chain.

write(mixed $contents) 
see
inherited_from \Zend\Authentication\Storage\StorageInterface::write()

Parameters

$contents

 Properties

 

Contains all storage that this authentication method uses. A storage placed in the priority queue with a higher priority is always used before using a storage with a lower priority.

$storageChain : \Zend\Stdlib\PriorityQueue

Default