DOMNodeList wrapper for Zend\Dom\Document\Query results

package Default

 Methods

Constructor

__construct(\DOMNodeList $list) 

Parameters

$list

\DOMNodeList

Countable: get count

count() : integer

Returns

integer

Iterator: return current element

current() : \DOMNode

Returns

\DOMNode

Iterator: return key of current element

key() : integer

Returns

integer

Iterator: move to next element

next() : \DOMNode

Returns

\DOMNode

ArrayAccess: offset exists

offsetExists(integer $key) : boolean

Parameters

$key

integer

Returns

boolean

ArrayAccess: get offset

offsetGet(integer $key) : mixed

Parameters

$key

integer

Returns

mixed

ArrayAccess: set offset

offsetSet(mixed $key, mixed $value) 

Parameters

$key

mixed

$value

mixed

Exceptions

\Zend\Dom\Exception\BadMethodCallException when attempting to write to a read-only item

ArrayAccess: unset offset

offsetUnset(mixed $key) 

Parameters

$key

mixed

Exceptions

\Zend\Dom\Exception\BadMethodCallException when attempting to unset a read-only item

Iterator: rewind to first element

rewind() : \DOMNode

Returns

\DOMNode

Iterator: is current position valid?

valid() : boolean

Returns

boolean

 Properties

 

$list

$list : \DOMNodeList

Default

 

Current iterator position

$position : integer

Default

0