GenericArrayObject::__construct |
( |
|
$input = null , |
|
|
|
$flags = 0 , |
|
|
|
$iterator_class = 'ArrayIterator' |
|
) |
| |
GenericArrayObject::append |
( |
|
$value | ) |
|
GenericArrayObject::getNewOffset |
( |
| ) |
|
|
protected |
Finds a new offset for when appending an element. The base class does this, so it would be better to integrate, but there does not appear to be any way to do this...
- Since
- 1.20
- Returns
- int
GenericArrayObject::getObjectType |
( |
| ) |
|
|
abstract |
Returns the name of an interface/class that the element should implement/extend.
- Since
- 1.20
- Returns
- string
GenericArrayObject::getSerializationData |
( |
| ) |
|
|
protected |
Returns an array holding all the data that should go into serialization calls. This is intended to allow overloading without having to reimplement the behavior of this base class.
- Since
- 1.20
- Returns
- array
GenericArrayObject::hasValidType |
( |
|
$value | ) |
|
|
protected |
Returns if the provided value has the same type as the elements that can be added to this ArrayObject.
- Since
- 1.20
- Parameters
-
- Returns
- bool
GenericArrayObject::isEmpty |
( |
| ) |
|
Returns if the ArrayObject has no elements.
- Since
- 1.20
- Returns
- bool
GenericArrayObject::offsetSet |
( |
|
$index, |
|
|
|
$value |
|
) |
| |
GenericArrayObject::preSetElement |
( |
|
$index, |
|
|
|
$value |
|
) |
| |
|
protected |
Gets called before a new element is added to the ArrayObject.
At this point the index is always set (ie not null) and the value is always of the type returned by
- See Also
- getObjectType.
Should return a boolean. When false is returned the element does not get added to the ArrayObject.
- Since
- 1.20
- Parameters
-
int | string | $index | |
mixed | $value | |
- Returns
- bool
GenericArrayObject::serialize |
( |
| ) |
|
GenericArrayObject::setElement |
( |
|
$index, |
|
|
|
$value |
|
) |
| |
|
protected |
Method that actually sets the element and holds all common code needed for set operations, including type checking and offset resolving.
If you want to do additional indexing or have code that otherwise needs to be executed whenever an element is added, you can overload
- See Also
- preSetElement.
- Since
- 1.20
- Parameters
-
- Exceptions
-
GenericArrayObject::unserialize |
( |
|
$serialization | ) |
|
The documentation for this class was generated from the following file: