1811. Class

1811.1. Zend\Authentication\Storage\Chain

1811.1.1. Methods

1811.1.1.1. __construct

__construct()

Initializes the priority queue.

1811.1.1.2. add

add()

@param StorageInterface $storage

Parameters:integer

1811.1.1.3. isEmpty

isEmpty()

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.

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.

1811.1.1.4. read

read()

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

1811.1.1.5. write

write()

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

1811.1.1.6. clear

clear()

Clear all storage in the chain.

Project Versions

Table Of Contents

Previous topic

1810. Class

Next topic

1812. Function

This Page