Zend\Dom\NodeList
Nodelist for DOM XPath query
Synopsis
class NodeList
implements
Iterator,Countable,ArrayAccess
{
- // members
- protected string $cssQuery;
- protected DOMDocument $document;
- protected DOMNodeList $nodeList;
- protected integer $position;
- protected string $xpathQuery;
- // methods
- public void __construct()
- public string getCssQuery()
- public string getXpathQuery()
- public DOMDocument getDocument()
- public DOMNode rewind()
- public bool valid()
- public DOMNode current()
- public int key()
- public DOMNode next()
- public int count()
- public bool offsetExists()
- public mixed offsetGet()
- public void offsetSet()
- public void offsetUnset()
Hierarchy
Implements
Members
protected
- $cssQuery
—
string
CSS Selector query - $document — DOMDocument
- $nodeList — DOMNodeList
- $position
—
int
Current iterator position - $xpathQuery
—
string
XPath query
Methods
public
- __construct() — Constructor
- count() — Countable: get count
- current() — Iterator: return current element
- getCssQuery() — Retrieve CSS Query
- getDocument() — Retrieve DOMDocument
- getXpathQuery() — Retrieve XPath query
- key() — Iterator: return key of current element
- next() — Iterator: move to next element
- offsetExists() — ArrayAccess: offset exists
- offsetGet() — ArrayAccess: get offset
- offsetSet() — ArrayAccess: set offset
- offsetUnset() — ArrayAccess: unset offset
- rewind() — Iterator: rewind to first element
- valid() — Iterator: is current position valid?