class XPathExpr

XPath expression translator interface.

This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect.

Methods

__construct(string $path = '', string $element = '*', string $condition = '', bool $starPrefix = false)

No description

string
getElement()

No description

addCondition($condition)

No description

string
getCondition()

No description

addNameTest()

No description

addStarPrefix()

No description

join(string $combiner, XPathExpr $expr)

Joins another XPathExpr with a combiner.

string
__toString()

No description

Details

at line line 47
__construct(string $path = '', string $element = '*', string $condition = '', bool $starPrefix = false)

Parameters

string $path
string $element
string $condition
bool $starPrefix

at line line 61
string getElement()

Return Value

string

at line line 71
XPathExpr addCondition($condition)

Parameters

$condition

Return Value

XPathExpr

at line line 81
string getCondition()

Return Value

string

at line line 89
XPathExpr addNameTest()

Return Value

XPathExpr

at line line 102
XPathExpr addStarPrefix()

Return Value

XPathExpr

at line line 117
XPathExpr join(string $combiner, XPathExpr $expr)

Joins another XPathExpr with a combiner.

Parameters

string $combiner
XPathExpr $expr

Return Value

XPathExpr

at line line 135
string __toString()

Return Value

string