Fully Qualified Name: | Zend\Dom\Document\NodeList |
Implements: | Iterator, Countable, ArrayAccess |
DOMNodeList wrapper for Zend\Dom\Document\Query results
Name | Description | Defined By |
---|---|---|
__construct() | Constructor | NodeList |
count() | Countable: get count | NodeList |
current() | Iterator: return current element | NodeList |
key() | Iterator: return key of current element | NodeList |
next() | Iterator: move to next element | NodeList |
offsetExists() | ArrayAccess: offset exists | NodeList |
offsetGet() | ArrayAccess: get offset | NodeList |
offsetSet() | ArrayAccess: set offset | NodeList |
offsetUnset() | ArrayAccess: unset offset | NodeList |
rewind() | Iterator: rewind to first element | NodeList |
valid() | Iterator: is current position valid? | NodeList |
Constructor
Parameter Name | Type | Description |
---|---|---|
$list | \DOMNodeList |
Returns:
Countable: get count
Returns: int
Iterator: return current element
Returns: \DOMNode
Iterator: return key of current element
Returns: int
Iterator: move to next element
Returns: \DOMNode
ArrayAccess: offset exists
Parameter Name | Type | Description |
---|---|---|
$key | int |
Returns: bool
ArrayAccess: get offset
Parameter Name | Type | Description |
---|---|---|
$key | int |
Returns: mixed
ArrayAccess: set offset
Parameter Name | Type | Description |
---|---|---|
$key | mixed | |
$value | mixed |
Returns:
ArrayAccess: unset offset
Parameter Name | Type | Description |
---|---|---|
$key | mixed |
Returns:
Iterator: rewind to first element
Returns: \DOMNode
Iterator: is current position valid?
Returns: bool