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)
Instantiates storage as an ArrayObject, allowing property access.
Also sets the initial request access time.
Parameters
$input
array
$flags
int
$iteratorClass
string
Returns the value at the specified key by reference
__get(mixed $key) : mixed
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::__get() |
Parameters
$key
mixed
Returns
mixed
Returns whether the requested key exists
__isset(mixed $key) : bool
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::__isset() |
Parameters
$key
mixed
Returns
bool
Sets the value at the specified key to value
__set(mixed $key, mixed $value) : void
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::__set() |
Parameters
$key
mixed
$value
mixed
Unsets the value at the specified key
__unset(mixed $key) : void
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::__unset() |
Parameters
$key
mixed
Appends the value
append(mixed $value) : void
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::append() |
Parameters
$value
mixed
Sort the entries by value
asort() : void
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::asort() |
Get the number of public properties in the ArrayObject
count() : int
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::count() |
Returns
int
Exchange the array for another one.
exchangeArray(array | \Zend\Stdlib\ArrayObject $data) : array
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::exchangeArray() |
Parameters
Returns
array
Load the storage from another array
fromArray(array $array) : \Zend\Session\Storage\ArrayStorage
Overwrites any data that was previously set.
Parameters
$array
array
Returns
Creates a copy of the ArrayObject.
getArrayCopy() : array
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::getArrayCopy() |
Returns
array
Gets the behavior flags.
getFlags() : int
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::getFlags() |
Returns
int
Create a new iterator from an ArrayObject instance
getIterator() : \Iterator
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::getIterator() |
Returns
\Iterator
Gets the iterator classname for the ArrayObject.
getIteratorClass() : string
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::getIteratorClass() |
Returns
string
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
Sort the entries by key
ksort() : void
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::ksort() |
Sort an array using a case insensitive "natural order" algorithm
natcasesort() : void
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::natcasesort() |
Sort entries using a "natural order" algorithm
natsort() : void
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::natsort() |
Returns whether the requested key exists
offsetExists(mixed $key) : bool
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::offsetExists() |
Parameters
$key
mixed
Returns
bool
Returns the value at the specified key
offsetGet(mixed $key) : mixed
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::offsetGet() |
Parameters
$key
mixed
Returns
mixed
Sets the value at the specified key to value
offsetSet(mixed $key, mixed $value) : void
Parameters
$key
mixed
$value
mixed
Exceptions
Unsets the value at the specified key
offsetUnset(mixed $key) : void
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::offsetUnset() |
Parameters
$key
mixed
Serialize an ArrayObject
serialize() : string
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::serialize() |
Returns
string
Sets the behavior flags
setFlags(int $flags) : void
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::setFlags() |
Parameters
$flags
int
Sets the iterator classname for the ArrayObject
setIteratorClass(string $class) : void
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::setIteratorClass() |
Parameters
$class
string
Cast the object to an array
toArray(bool $metaData) : array
Parameters
$metaData
bool
Whether to include metadata
Returns
array
Sort the entries with a user-defined comparison function and maintain key association
uasort(\Zend\Stdlib\callable $function) : void
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::uasort() |
Parameters
$function
\Zend\Stdlib\callable
Sort the entries by keys using a user-defined comparison function
uksort(\Zend\Stdlib\callable $function) : void
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::uksort() |
Parameters
$function
\Zend\Stdlib\callable
Unserialize an ArrayObject
unserialize(string $data) : void
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::unserialize() |
Parameters
$data
string
Properties
$flag
$flag : int
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::$$flag |
Is storage marked isImmutable?
$isImmutable : bool
$iteratorClass
$iteratorClass : string
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::$$iteratorClass |
$protectedProperties
$protectedProperties : array
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::$$protectedProperties |
$storage
$storage : array
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::$$storage |
Constants
Entries can be accessed as properties (read and write).
ARRAY_AS_PROPS
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::ARRAY_AS_PROPS |
Properties of the object have their normal functionality
when accessed as list (var_dump, foreach, etc.).
STD_PROP_LIST
Inherited
inherited_from |
\Zend\Stdlib\ArrayObject::STD_PROP_LIST |