__construct()
clear()
fromArray()
getMetadata()
getRequestAccessTime()
isImmutable()
isLocked()
lock()
markImmutable()
offsetSet()
setMetadata()
toArray()
unlock()
setRequestAccessTime()
$isImmutable
Array session storage
Defines an ArrayObject interface for accessing session storage, with options for setting metadata, locking, and marking as isImmutable.
__construct(array $input, int $flags, string $iteratorClass)
Instantiates storage as an ArrayObject, allowing property access. Also sets the initial request access time.
array
int
string
clear(null | int | string $key) : \Zend\Session\Storage\ArrayStorage
fromArray(array $array) : \Zend\Session\Storage\ArrayStorage
Overwrites any data that was previously set.
array
getMetadata(null | int | string $key) : mixed
Returns false if no metadata stored, or no metadata exists for the given key.
nullintstring
mixed
getRequestAccessTime() : float
float
isImmutable() : bool
bool
isLocked(null | int | string $key) : bool
nullintstring
bool
lock(null | int | string $key) : \Zend\Session\Storage\ArrayStorage
markImmutable() : \Zend\Session\Storage\ArrayStorage
offsetSet(mixed $key, mixed $value)
setMetadata(string $key, mixed $value, bool $overwriteArray) : \Zend\Session\Storage\ArrayStorage
Metadata is used to store information about the data being stored in the object. Some example use cases include: - Setting expiry data - Maintaining access counts - localizing session storage - etc.
string
mixed
bool
Whether to overwrite or merge array values; by default, merges
\Zend\Session\Exception\RuntimeException |
---|
toArray(bool $metaData) : array
bool
Whether to include metadata
array
unlock(null | int | string $key) : \Zend\Session\Storage\ArrayStorage
$isImmutable : bool