Nodelist for DOM XPath query.
More...
Nodelist for DOM XPath query.
- Deprecated:
- See Also
__construct |
( |
|
$cssQuery, |
|
|
|
$xpathQuery, |
|
|
DOMDocument |
$document, |
|
|
DOMNodeList |
$nodeList, |
|
|
DOMNode |
$contextNode = null |
|
) |
| |
Constructor.
- Parameters
-
string | $cssQuery | |
string | array | $xpathQuery | |
DOMDocument | $document | |
DOMNodeList | $nodeList | |
DOMNode | null | $contextNode | |
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.
- Parameters
-
- Returns
- bool
ArrayAccess: get offset.
- Parameters
-
- Returns
- mixed
offsetSet |
( |
|
$key, |
|
|
|
$value |
|
) |
| |
ArrayAccess: set offset.
- Parameters
-
- Exceptions
-
Exception\BadMethodCallException | when attempting to write to a read-only item |
ArrayAccess: unset offset.
- Parameters
-
- Exceptions
-
Exception\BadMethodCallException | when attempting to unset a read-only item |
Iterator: rewind to first element.
- Returns
- DOMNode
Iterator: is current position valid?
- Returns
- bool