Defines an ArrayObject interface for accessing session storage, with options
for setting metadata, locking, and marking as isImmutable.
Methods
Constructor
__construct(array $input, int $flags, string $iteratorClass) : \Zend\Stdlib\ArrayObject
Instantiates storage as an ArrayObject, allowing property access.
Also sets the initial request access time.
Parameters
$input
array
$flags
int
$iteratorClass
string
Returns
append()
append()
Inherited
inherited_from |
ArrayObject::append() |
inherited_from |
\Zend\Stdlib\ArrayObject::append() |
asort()
asort()
Inherited
inherited_from |
ArrayObject::asort() |
inherited_from |
\Zend\Stdlib\ArrayObject::asort() |
count()
count()
Inherited
inherited_from |
ArrayObject::count() |
inherited_from |
\Zend\Stdlib\ArrayObject::count() |
exchangeArray()
exchangeArray()
Inherited
inherited_from |
ArrayObject::exchangeArray() |
inherited_from |
\Zend\Stdlib\ArrayObject::exchangeArray() |
Load the storage from another array
fromArray(array $array) : \Zend\Session\Storage\ArrayStorage
Overwrites any data that was previously set.
Parameters
$array
array
Returns
getArrayCopy()
getArrayCopy()
Inherited
inherited_from |
ArrayObject::getArrayCopy() |
inherited_from |
\Zend\Stdlib\ArrayObject::getArrayCopy() |
getFlags()
getFlags()
Inherited
inherited_from |
ArrayObject::getFlags() |
inherited_from |
\Zend\Stdlib\ArrayObject::getFlags() |
getIterator()
getIterator()
Inherited
inherited_from |
ArrayObject::getIterator() |
inherited_from |
\Zend\Stdlib\ArrayObject::getIterator() |
getIteratorClass()
getIteratorClass()
Inherited
inherited_from |
ArrayObject::getIteratorClass() |
inherited_from |
\Zend\Stdlib\ArrayObject::getIteratorClass() |
Retrieve the request access time
getRequestAccessTime() : float
Is the storage container marked as isImmutable?
isImmutable() : bool
Is the object or key marked as locked?
isLocked(null | int | string $key) : bool
Parameters
$key
nullintstring
Returns
bool
ksort()
ksort()
Inherited
inherited_from |
ArrayObject::ksort() |
inherited_from |
\Zend\Stdlib\ArrayObject::ksort() |
natcasesort()
natcasesort()
Inherited
inherited_from |
ArrayObject::natcasesort() |
inherited_from |
\Zend\Stdlib\ArrayObject::natcasesort() |
natsort()
natsort()
Inherited
inherited_from |
ArrayObject::natsort() |
inherited_from |
\Zend\Stdlib\ArrayObject::natsort() |
offsetExists()
offsetExists()
Inherited
inherited_from |
ArrayObject::offsetExists() |
inherited_from |
\Zend\Stdlib\ArrayObject::offsetExists() |
offsetGet()
offsetGet()
Inherited
inherited_from |
ArrayObject::offsetGet() |
inherited_from |
\Zend\Stdlib\ArrayObject::offsetGet() |
offsetSet()
offsetSet(mixed $key, mixed $value)
Parameters
$key
mixed
$value
mixed
Exceptions
offsetUnset()
offsetUnset()
Inherited
inherited_from |
ArrayObject::offsetUnset() |
inherited_from |
\Zend\Stdlib\ArrayObject::offsetUnset() |
serialize()
serialize()
Inherited
inherited_from |
ArrayObject::serialize() |
inherited_from |
\Zend\Stdlib\ArrayObject::serialize() |
setFlags()
setFlags()
Inherited
inherited_from |
ArrayObject::setFlags() |
inherited_from |
\Zend\Stdlib\ArrayObject::setFlags() |
setIteratorClass()
setIteratorClass()
Inherited
inherited_from |
ArrayObject::setIteratorClass() |
inherited_from |
\Zend\Stdlib\ArrayObject::setIteratorClass() |
Cast the object to an array
toArray($metaData) : array
Returns data only, no metadata.
Parameters
$metaData
Returns
array
uasort()
uasort()
Inherited
inherited_from |
ArrayObject::uasort() |
inherited_from |
\Zend\Stdlib\ArrayObject::uasort() |
uksort()
uksort()
Inherited
inherited_from |
ArrayObject::uksort() |
inherited_from |
\Zend\Stdlib\ArrayObject::uksort() |
unserialize()
unserialize()
Inherited
inherited_from |
ArrayObject::unserialize() |
inherited_from |
\Zend\Stdlib\ArrayObject::unserialize() |
Properties
Is storage marked isImmutable?
$isImmutable : bool