class CombinationExtension extends AbstractExtension

XPath expression translator combination extension.

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

Methods

callable[]
getNodeTranslators()

Returns node translators.

callable[]
getCombinationTranslators()

Returns combination translators.

callable[]
getFunctionTranslators()

Returns function translators.

callable[]
getPseudoClassTranslators()

Returns pseudo-class translators.

callable[]
getAttributeMatchingTranslators()

Returns attribute operation translators.

translateDescendant(XPathExpr $xpath, XPathExpr $combinedXpath)

No description

translateChild(XPathExpr $xpath, XPathExpr $combinedXpath)

No description

translateDirectAdjacent(XPathExpr $xpath, XPathExpr $combinedXpath)

No description

translateIndirectAdjacent(XPathExpr $xpath, XPathExpr $combinedXpath)

No description

string
getName()

Returns extension name.

Details

in AbstractExtension at line line 27
callable[] getNodeTranslators()

Returns node translators.

These callables will receive the node as first argument and the translator as second argument.

Return Value

callable[]

at line line 29
callable[] getCombinationTranslators()

Returns combination translators.

Return Value

callable[]

in AbstractExtension at line line 43
callable[] getFunctionTranslators()

Returns function translators.

Return Value

callable[]

in AbstractExtension at line line 51
callable[] getPseudoClassTranslators()

Returns pseudo-class translators.

Return Value

callable[]

in AbstractExtension at line line 59
callable[] getAttributeMatchingTranslators()

Returns attribute operation translators.

Return Value

callable[]

at line line 42
XPathExpr translateDescendant(XPathExpr $xpath, XPathExpr $combinedXpath)

Parameters

XPathExpr $xpath
XPathExpr $combinedXpath

Return Value

XPathExpr

at line line 50
XPathExpr translateChild(XPathExpr $xpath, XPathExpr $combinedXpath)

Parameters

XPathExpr $xpath
XPathExpr $combinedXpath

Return Value

XPathExpr

at line line 58
XPathExpr translateDirectAdjacent(XPathExpr $xpath, XPathExpr $combinedXpath)

Parameters

XPathExpr $xpath
XPathExpr $combinedXpath

Return Value

XPathExpr

at line line 69
XPathExpr translateIndirectAdjacent(XPathExpr $xpath, XPathExpr $combinedXpath)

Parameters

XPathExpr $xpath
XPathExpr $combinedXpath

Return Value

XPathExpr

at line line 77
string getName()

Returns extension name.

Return Value

string