XPathExpr

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)
string getElement()
XPathExpr addCondition($condition)
string getCondition()
XPathExpr addNameTest()
XPathExpr addStarPrefix()
XPathExpr join(string $combiner, XPathExpr $expr)

Joins another XPathExpr with a combiner.

string __toString()

Details

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

Parameters

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

string getElement()

Return Value

string

XPathExpr addCondition($condition)

Parameters

$condition

Return Value

XPathExpr

string getCondition()

Return Value

string

XPathExpr addNameTest()

Return Value

XPathExpr

XPathExpr addStarPrefix()

Return Value

XPathExpr

XPathExpr join(string $combiner, XPathExpr $expr)

Joins another XPathExpr with a combiner.

Parameters

string $combiner
XPathExpr $expr

Return Value

XPathExpr

string __toString()

Return Value

string
doc_Symfony
2016-10-28 06:37:25
Comments
Leave a Comment

Please login to continue.