Zend\Dom\Document\Query
Query object executable in a Zend\Dom\Document
Synopsis
class Query
{
- // constants
- const TYPE_XPATH = 'TYPE_XPATH';
- const TYPE_CSS = 'TYPE_CSS';
- // methods
- public static NodeList execute()
- public static string cssToXpath()
- protected static string _tokenize()
Constants
Name | Value |
---|---|
TYPE_XPATH | 'TYPE_XPATH' |
TYPE_CSS | 'TYPE_CSS' |
Methods
protected
- _tokenize() — Tokenize CSS expressions to XPath
public
- cssToXpath() — Transform CSS expression to XPath
- execute() — Perform the query on Document