Results for DOM XPath query

package Zend_Dom
subpackage Query
uses
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
version $Id$

 Methods

Constructor

__construct(string $cssQuery, string|array $xpathQuery, \DOMDocument $document, \DOMNodeList $nodeList) 

Parameters

$cssQuery

string

$xpathQuery

stringarray

$document

\DOMDocument

$nodeList

\DOMNodeList

Countable: get count

count() : integer

Returns

integer

Iterator: return current element

current() : \DOMElement

Returns

\DOMElement

Retrieve CSS Query

getCssQuery() : string

Returns

string

Retrieve DOMDocument

getDocument() : \DOMDocument

Returns

\DOMDocument

Retrieve XPath query

getXpathQuery() : string

Returns

string

Iterator: return key of current element

key() : integer

Returns

integer

Iterator: move to next element

next() : \DOMNode | null

Returns

\DOMNodenull

Iterator: rewind to first element

rewind() : \DOMNode | null

Returns

\DOMNodenull

Iterator: is current position valid?

valid() : boolean

Returns

boolean

 Properties

 

Number of results

$_count : integer

Default

 

CSS Selector query

$_cssQuery : string

Default

 

$_document

$_document : \DOMDocument

Default

 

$_nodeList

$_nodeList : \DOMNodeList

Default

 

Current iterator position

$_position : integer

Default

0
 

$_xpath

$_xpath : \DOMXPath

Default

 

XPath query

$_xpathQuery : string

Default