FunctionExtension
class FunctionExtension extends AbstractExtension
XPath expression translator function extension.
This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect.
Methods
Details
callable[]
getNodeTranslators()
Returns node translators.
These callables will receive the node as first argument and the translator as second argument.
Return Value
callable[]
getCombinationTranslators()
Returns combination translators.
Return Value
callable[]
getFunctionTranslators()
Returns function translators.
Return Value
callable[]
getPseudoClassTranslators()
Returns pseudo-class translators.
Return Value
callable[]
getAttributeMatchingTranslators()
Returns attribute operation translators.
Return Value
XPathExpr
translateNthChild(XPathExpr $xpath, FunctionNode $function, bool $last = false, bool $addNameTest = true)
Parameters
Return Value
Exceptions
Parameters
Return Value
Parameters
Return Value
Parameters
Return Value
Exceptions
Parameters
Return Value
Exceptions
Parameters
Return Value
Exceptions
string
getName()
Returns extension name.
Return Value