DOMNodeList wrapper for Zend\Dom\Document\Query results

 Methods

Constructor

__construct(\DOMNodeList $list) 

Parameters

$list

\DOMNodeList

Countable: get count

count() : int

Returns

int

Iterator: return current element

current() : \DOMNode

Returns

Iterator: return key of current element

key() : int

Returns

int

ArrayAccess: offset exists

offsetExists(int $key) : bool

Parameters

$key

int

Returns

bool

ArrayAccess: get offset

offsetGet(int $key) : mixed

Parameters

$key

int

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

Iterator: is current position valid?

valid() : bool

Returns

bool

 Properties

 

$list

$list : \DOMNodeList

 

Current iterator position

$position : int