CombinationExtension

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.

from AbstractExtension
callable[] getCombinationTranslators()

Returns combination translators.

callable[] getFunctionTranslators()

Returns function translators.

from AbstractExtension
callable[] getPseudoClassTranslators()

Returns pseudo-class translators.

from AbstractExtension
callable[] getAttributeMatchingTranslators()

Returns attribute operation translators.

from AbstractExtension
XPathExpr translateDescendant(XPathExpr $xpath, XPathExpr $combinedXpath)
XPathExpr translateChild(XPathExpr $xpath, XPathExpr $combinedXpath)
XPathExpr translateDirectAdjacent(XPathExpr $xpath, XPathExpr $combinedXpath)
XPathExpr translateIndirectAdjacent(XPathExpr $xpath, XPathExpr $combinedXpath)
string getName()

Returns extension name.

Details

callable[] getNodeTranslators()

Returns node translators.

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

Return Value

callable[]

callable[] getCombinationTranslators()

Returns combination translators.

Return Value

callable[]

callable[] getFunctionTranslators()

Returns function translators.

Return Value

callable[]

callable[] getPseudoClassTranslators()

Returns pseudo-class translators.

Return Value

callable[]

callable[] getAttributeMatchingTranslators()

Returns attribute operation translators.

Return Value

callable[]

XPathExpr translateDescendant(XPathExpr $xpath, XPathExpr $combinedXpath)

Parameters

XPathExpr $xpath
XPathExpr $combinedXpath

Return Value

XPathExpr

XPathExpr translateChild(XPathExpr $xpath, XPathExpr $combinedXpath)

Parameters

XPathExpr $xpath
XPathExpr $combinedXpath

Return Value

XPathExpr

XPathExpr translateDirectAdjacent(XPathExpr $xpath, XPathExpr $combinedXpath)

Parameters

XPathExpr $xpath
XPathExpr $combinedXpath

Return Value

XPathExpr

XPathExpr translateIndirectAdjacent(XPathExpr $xpath, XPathExpr $combinedXpath)

Parameters

XPathExpr $xpath
XPathExpr $combinedXpath

Return Value

XPathExpr

string getName()

Returns extension name.

Return Value

string
doc_Symfony
2016-10-28 06:09:31
Comments
Leave a Comment

Please login to continue.