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(string $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 30
__construct(string $path = '', string $element = '*', string $condition = '', bool $starPrefix = false)

Parameters

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

at line 41
string getElement()

Return Value

string

at line 46
XPathExpr addCondition(string $condition)

Parameters

string $condition

Return Value

XPathExpr

at line 53
string getCondition()

Return Value

string

at line 58
XPathExpr addNameTest()

Return Value

XPathExpr

at line 68
XPathExpr addStarPrefix()

Return Value

XPathExpr

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

Joins another XPathExpr with a combiner.

Parameters

string $combiner
XPathExpr $expr

Return Value

XPathExpr

at line 95
string __toString()

Return Value

string