| Fully Qualified Name: | Laminas\Dom\NodeList | 
| Implements: | Iterator, Countable, ArrayAccess | 
Nodelist for DOM XPath query
| Name | Description | Defined By | 
|---|---|---|
| __construct() | Constructor | NodeList | 
| count() | Countable: get count | NodeList | 
| current() | Iterator: return current element | NodeList | 
| getContextNode() | Retrieve context node | NodeList | 
| getCssQuery() | Retrieve CSS Query | NodeList | 
| getDocument() | Retrieve DOMDocument | NodeList | 
| getXpathQuery() | Retrieve XPath query | 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 | 
|---|---|---|
| $cssQuery | string | |
| $xpathQuery | string|array | |
| $document | \DOMDocument | |
| $nodeList | \DOMNodeList | |
| $contextNode | \DOMNode|null | 
Returns:
Countable: get count
Returns: int
Iterator: return current element
Returns: \DOMNode
Retrieve context node
Returns: \DOMNode
Retrieve CSS Query
Returns: string
Retrieve DOMDocument
Returns: \DOMDocument
Retrieve XPath query
Returns: string
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