Query object executable in a Zend.
More...
|
static | execute ($expression, Document $document, $type=self::TYPE_XPATH,\DOMNode $contextNode=null) |
| #@-
|
|
static | cssToXpath ($path) |
| Transform CSS expression to XPath.
|
|
|
static | _tokenize ($expression) |
| Tokenize CSS expressions to XPath.
|
|
Query object executable in a Zend.
static _tokenize |
( |
|
$expression | ) |
|
|
staticprotected |
Tokenize CSS expressions to XPath.
- Parameters
-
- Returns
- string
ZF-9764 – remove double asterisk
static cssToXpath |
( |
|
$path | ) |
|
|
static |
Transform CSS expression to XPath.
- Parameters
-
- Returns
- string
static execute |
( |
|
$expression, |
|
|
Document |
$document, |
|
|
|
$type = self::TYPE_XPATH , |
|
|
\DOMNode |
$contextNode = null |
|
) |
| |
|
static |
#@-
Perform the query on Document
- Parameters
-
string | $expression | CSS selector or XPath query |
Document | $document | Document to query |
string | $type | The type of $expression |
\DOMNode | $contextNode | |
- Returns
- NodeList
const TYPE_CSS = 'TYPE_CSS' |
const TYPE_XPATH = 'TYPE_XPATH' |