Zend\Session\Storage\ArrayStorage
Array session storage
Defines an ArrayObject interface for accessing session storage, with options
for setting metadata, locking, and marking as isImmutable.
Synopsis
class ArrayStorage
extends ArrayObject
implements
StorageInterface
{
- // Inherited constants from ArrayObject
- const STD_PROP_LIST = 1;
- const ARRAY_AS_PROPS = 2;
- // members
- protected bool $isImmutable;
- // Inherited members from ArrayObject
- protected array $storage;
- protected int $flag;
- protected string $iteratorClass;
- protected array $protectedProperties;
- // methods
- public void __construct()
- protected ArrayStorage setRequestAccessTime()
- public float getRequestAccessTime()
- public void offsetSet()
- public ArrayStorage lock()
- public bool isLocked()
- public ArrayStorage unlock()
- public ArrayStorage markImmutable()
- public bool isImmutable()
- public ArrayStorage setMetadata()
- public mixed getMetadata()
- public ArrayStorage clear()
- public ArrayStorage fromArray()
- public array toArray()
- // Inherited methods from ArrayObject
- public void __construct()
- public bool __isset()
- public void __set()
- public void __unset()
- public mixed __get()
- public void append()
- public void asort()
- public int count()
- public array exchangeArray()
- public array getArrayCopy()
- public int getFlags()
- public Iterator getIterator()
- public string getIteratorClass()
- public void ksort()
- public void natcasesort()
- public void natsort()
- public bool offsetExists()
- public mixed offsetGet()
- public void offsetSet()
- public void offsetUnset()
- public string serialize()
- public void setFlags()
- public void setIteratorClass()
- public void uasort()
- public void uksort()
- public void unserialize()
Hierarchy
Extends
Extended by
Implements
Constants
Name | Value |
---|---|
STD_PROP_LIST | 1 |
ARRAY_AS_PROPS | 2 |
Members
protected
- $flag — int
- $isImmutable
—
Zend\Session\Storage\bool
Is storage marked isImmutable? - $iteratorClass — string
- $protectedProperties — array
- $storage — array
Methods
protected
- setRequestAccessTime() — Set the request access time
public
- __construct() — Constructor
- clear() — Clear the storage object or a subkey of the object
- fromArray() — Load the storage from another array
- getMetadata() — Retrieve metadata for the storage object or a specific metadata key
- getRequestAccessTime() — Retrieve the request access time
- isImmutable() — Is the storage container marked as isImmutable?
- isLocked() — Is the object or key marked as locked?
- lock() — Lock this storage instance, or a key within it
- markImmutable() — Mark the storage container as isImmutable
- offsetSet()
- setMetadata() — Set storage metadata
- toArray() — Cast the object to an array
- unlock() — Unlock an object or key marked as locked
Inherited from Zend\Stdlib\ArrayObject
public
- __get() — Returns the value at the specified key by reference
- __isset() — Returns whether the requested key exists
- __set() — Sets the value at the specified key to value
- __unset() — Unsets the value at the specified key
- append() — Appends the value
- asort() — Sort the entries by value
- count() — Get the number of public properties in the ArrayObject
- exchangeArray() — Exchange the array for another one.
- getArrayCopy() — Creates a copy of the ArrayObject.
- getFlags() — Gets the behavior flags.
- getIterator() — Create a new iterator from an ArrayObject instance
- getIteratorClass() — Gets the iterator classname for the ArrayObject.
- ksort() — Sort the entries by key
- natcasesort() — Sort an array using a case insensitive "natural order" algorithm
- natsort() — Sort entries using a "natural order" algorithm
- offsetExists() — Returns whether the requested key exists
- offsetGet() — Returns the value at the specified key
- offsetSet() — Sets the value at the specified key to value
- offsetUnset() — Unsets the value at the specified key
- serialize() — Serialize an ArrayObject
- setFlags() — Sets the behavior flags
- setIteratorClass() — Sets the iterator classname for the ArrayObject
- uasort() — Sort the entries with a user-defined comparison function and maintain key association
- uksort() — Sort the entries by keys using a user-defined comparison function
- unserialize() — Unserialize an ArrayObject