| Fully Qualified Name: | Zend\Session\Storage\SessionArrayStorage |
| Extends: | AbstractSessionArrayStorage |
Session storage in $_SESSION
Constructor
| Parameter Name | Type | Description |
|---|---|---|
| $input | array|null |
Returns:
Destructor
Returns: void
Get Offset
| Parameter Name | Type | Description |
|---|---|---|
| $key | mixed |
Returns: mixed
Isset Offset
| Parameter Name | Type | Description |
|---|---|---|
| $key | mixed |
Returns: bool
Set Offset
| Parameter Name | Type | Description |
|---|---|---|
| $key | mixed | |
| $value | mixed |
Returns: void
Unset Offset
| Parameter Name | Type | Description |
|---|---|---|
| $key | mixed |
Returns: void
Clear the storage object or a subkey of the object
| Parameter Name | Type | Description |
|---|---|---|
| $key | null|int|string |
Returns: \ArrayStorage
Count
Returns: int
Load session object from an existing array
Ensures $_SESSION is set to an instance of the object when complete.
| Parameter Name | Type | Description |
|---|---|---|
| $array | array |
Returns: \SessionStorage
Get Iterator
Returns: \ArrayIterator
Retrieve metadata for the storage object or a specific metadata key
Returns false if no metadata stored, or no metadata exists for the given key.
| Parameter Name | Type | Description |
|---|---|---|
| $key | null|int|string |
Returns: mixed
Retrieve the request access time
Returns: float
Initialize Storage
| Parameter Name | Type | Description |
|---|---|---|
| $input | array |
Returns: void
Determine if this object is isImmutable
Returns: bool
Is the object or key marked as locked?
| Parameter Name | Type | Description |
|---|---|---|
| $key | null|int|string |
Returns: bool
Lock this storage instance, or a key within it
| Parameter Name | Type | Description |
|---|---|---|
| $key | null|int|string |
Returns: \ArrayStorage
Mark object as isImmutable
Returns: \SessionStorage
Offset Exists
| Parameter Name | Type | Description |
|---|---|---|
| $key | mixed |
Returns: bool
Offset Get
| Parameter Name | Type | Description |
|---|---|---|
| $key | mixed |
Returns: mixed
Offset Set
| Parameter Name | Type | Description |
|---|---|---|
| $key | mixed | |
| $value | mixed |
Returns: void
Offset Unset
| Parameter Name | Type | Description |
|---|---|---|
| $key | mixed |
Returns: void
Seralize
Returns: string
Set storage metadata
Metadata is used to store information about the data being stored in the object. Some example use cases include:
| Parameter Name | Type | Description |
|---|---|---|
| $key | string | |
| $value | mixed | |
| $overwriteArray | bool | Whether |
Returns: \ArrayStorage
Cast the object to an array
| Parameter Name | Type | Description |
|---|---|---|
| $metaData | bool | Whether |
Returns: array
Unlock an object or key marked as locked
| Parameter Name | Type | Description |
|---|---|---|
| $key | null|int|string |
Returns: \ArrayStorage
Unserialize
| Parameter Name | Type | Description |
|---|---|---|
| $session | string |
Returns: mixed