386. Class

386.1. Zend\Dom\NodeList

Nodelist for DOM XPath query

386.1.1. Methods

386.1.1.1. __construct

__construct()

Constructor

Parameters:
  • string
  • string|array
  • DOMDocument
  • DOMNodeList
Return type:

void

386.1.1.2. getCssQuery

getCssQuery()

Retrieve CSS Query

Return type:string

386.1.1.3. getXpathQuery

getXpathQuery()

Retrieve XPath query

Return type:string

386.1.1.4. getDocument

getDocument()

Retrieve DOMDocument

Return type:DOMDocument

386.1.1.5. rewind

rewind()

Iterator: rewind to first element

Return type:DOMNode

386.1.1.6. valid

valid()

Iterator: is current position valid?

Return type:bool

386.1.1.7. current

current()

Iterator: return current element

Return type:DOMNode

386.1.1.8. key

key()

Iterator: return key of current element

Return type:int

386.1.1.10. count

count()

Countable: get count

Return type:int

386.1.1.11. offsetExists

offsetExists()

ArrayAccess: offset exists

Return type:bool

386.1.1.12. offsetGet

offsetGet()

ArrayAccess: get offset

Return type:mixed

386.1.1.13. offsetSet

offsetSet()

ArrayAccess: set offset

Return type:void
Throws :ExceptionBadMethodCallException when attemptingn to write to a read-only item

386.1.1.14. offsetUnset

offsetUnset()

ArrayAccess: unset offset

Return type:void
Throws :ExceptionBadMethodCallException when attemptingn to unset a read-only item