Container __construct(
array
$data
)
|
|
Constructs container and puts data inside
Parameters:
array |
$data: |
Property set |
API Tags:
Redefined in descendants as:
Returns current container element
API Tags:
Return: | Data element |
Access: | public |
Implementation of:
- Iterator::current
Fetches current key from the container
API Tags:
Return: | Current key |
Access: | public |
Implementation of:
- Iterator::key
bool key_exists(
mixed
$key
)
|
|
Checks if key exists in container
Parameters:
mixed |
$key: |
Key to search for |
API Tags:
Return: | TRUE if key exists, FALSE otherwise |
Access: | public |
Fetches next element from the container
API Tags:
Return: | Next element |
Access: | public |
Implementation of:
- Iterator::next
bool offsetExists(
mixed
$offset
)
|
|
Checks if any item is assigned to a key
Parameters:
API Tags:
Return: | Item exists |
Access: | public |
Implementation of:
- ArrayAccess::offsetExists
mixed offsetGet(
mixed
$offset
)
|
|
Returns contained item by key or NULL on error
Parameters:
API Tags:
Return: | Contained item or NULL if none exists |
Access: | public |
Implementation of:
- ArrayAccess::offsetGet
void offsetSet(
mixed
$offset, mixed
$value
)
|
|
Sets a contained item value in array style
Parameters:
mixed |
$offset: |
Key |
mixed |
$value: |
Value |
API Tags:
Implementation of:
- ArrayAccess::offsetSet
void offsetUnset(
mixed
$offset
)
|
|
Removes contained item by key
Parameters:
API Tags:
Implementation of:
- ArrayAccess::offsetUnset
Sets iterator pointer to the beginning of the container
API Tags:
Implementation of:
- Iterator::rewind
Serializes the container
API Tags:
Return: | Serialized data |
Access: | public |
Implementation of:
- Serializable::serialize
void unserialize(
string
$srl_data
)
|
|
Unserializes container data
Parameters:
string |
$srl_data: |
Serialized data |
API Tags:
Implementation of:
- Serializable::unserialize
Checks if iterator pointer points to a valid element (non-false)
API Tags:
Return: | Current element validity |
Access: | public |
Implementation of:
- Iterator::valid