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.
callable[] | getNodeTranslators() Returns node translators. | from AbstractExtension |
callable[] | getCombinationTranslators() Returns combination translators. | from AbstractExtension |
callable[] | getFunctionTranslators() Returns function translators. | |
callable[] | getPseudoClassTranslators() Returns pseudo-class translators. | from AbstractExtension |
callable[] | getAttributeMatchingTranslators() Returns attribute operation translators. | from AbstractExtension |
translateNthChild(XPathExpr $xpath, FunctionNode $function, bool $last = false, bool $addNameTest = true) | ||
translateNthLastChild(XPathExpr $xpath, FunctionNode $function) | ||
translateNthOfType(XPathExpr $xpath, FunctionNode $function) | ||
translateNthLastOfType(XPathExpr $xpath, FunctionNode $function) | ||
translateContains(XPathExpr $xpath, FunctionNode $function) | ||
translateLang(XPathExpr $xpath, FunctionNode $function) | ||
string | getName() Returns extension name. |
Returns node translators.
These callables will receive the node as first argument and the translator as second argument.
callable[] |
Returns combination translators.
callable[] |
Returns function translators.
callable[] |
Returns pseudo-class translators.
callable[] |
Returns attribute operation translators.
callable[] |
XPathExpr | $xpath | |
FunctionNode | $function | |
bool | $last | |
bool | $addNameTest |
ExpressionErrorException |
XPathExpr | $xpath | |
FunctionNode | $function |
XPathExpr | $xpath | |
FunctionNode | $function |
XPathExpr | $xpath | |
FunctionNode | $function |
ExpressionErrorException |
XPathExpr | $xpath | |
FunctionNode | $function |
ExpressionErrorException |
XPathExpr | $xpath | |
FunctionNode | $function |
ExpressionErrorException |
Returns extension name.
string |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/CssSelector/XPath/Extension/FunctionExtension.html