Class ResourceIterator
A generic, abstract collection class that allows collections to exhibit array functionality.
- OpenCloud\Common\ArrayAccess implements ArrayAccess
- OpenCloud\Common\Collection\ArrayCollection implements Countable
- OpenCloud\Common\Collection\ResourceIterator implements Iterator
Direct known subclasses
OpenCloud\Common\Collection\PaginatedIteratorIndirect known subclasses
OpenCloud\DNS\Collection\DnsIterator
Namespace: OpenCloud\Common\Collection
Package: OpenCloud\Common\Collection
Located at OpenCloud/Common/Collection/ResourceIterator.php
Package: OpenCloud\Common\Collection
Located at OpenCloud/Common/Collection/ResourceIterator.php
public static
|
|
protected
|
|
public
mixed
|
|
public
mixed
|
|
public
array
|
|
public
mixed
|
|
public
null
|
|
public
boolean
|
|
public
|
|
public
|
|
public
mixed
|
|
public
mixed
|
|
public
mixed
|
#
constructResource( mixed $object )
Using a standard object, this method populates a resource model with all the object data. It does this using a whatever method the parent object has for resource creation. |
public
integer|mixed
|
|
public
|
|
public
|
|
public
|
__construct(),
append(),
count(),
setElements(),
valueExists()
|
offsetExists(),
offsetGet(),
offsetSet(),
offsetUnset()
|
protected
integer
|
$position |
|
#
Internal pointer of the iterator - reveals its current position. |
protected
object
|
$resourceParent |
|
#
The parent object which resource models are instantiated from. The parent
needs to have appropriate |
protected
array
|
$options |
|
#
The options for this iterator. |
protected
array
|
$defaults | array('limit.total' => 1000) |
#
Fallback defaults if options are not explicitly set or provided. |
protected
array
|
$required | array() |
#
Required options |
$elements
|