Query object executable in a Zend\Dom\Document

package Default

 Methods

Transform CSS expression to XPath

cssToXpath(string $path) : string
Static

Parameters

$path

string

Returns

string

Perform the query on Document

execute(string $expression, \Zend\Dom\Document $document, string $type = self::TYPE_XPATH) : \Zend\Dom\Document\NodeList
Static

Parameters

$expression

string

CSS selector or XPath query

$document

\Zend\Dom\Document

Document to query

$type

string

The type of $expression

Returns

\Zend\Dom\Document\NodeList

Tokenize CSS expressions to XPath

_tokenize(string $expression) : string
Static

Parameters

$expression

string

Returns

string

 Constants

 

TYPE_CSS

TYPE_CSS = 'TYPE_CSS' 
 

TYPE_XPATH

TYPE_XPATH = 'TYPE_XPATH'