class HtmlExtension extends AbstractExtension
XPath expression translator HTML 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. | from AbstractExtension |
callable[] | getFunctionTranslators() Returns function translators. | |
callable[] | getPseudoClassTranslators() Returns pseudo-class translators. | |
callable[] | getAttributeMatchingTranslators() Returns attribute operation translators. | from AbstractExtension |
__construct(Translator $translator) Constructor. | ||
XPathExpr | translateChecked(XPathExpr $xpath) | |
XPathExpr | translateLink(XPathExpr $xpath) | |
XPathExpr | translateDisabled(XPathExpr $xpath) | |
XPathExpr | translateEnabled(XPathExpr $xpath) | |
XPathExpr | translateLang(XPathExpr $xpath, FunctionNode $function) | |
XPathExpr | translateSelected(XPathExpr $xpath) | |
XPathExpr | translateInvalid(XPathExpr $xpath) | |
XPathExpr | translateHover(XPathExpr $xpath) | |
XPathExpr | translateVisited(XPathExpr $xpath) | |
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.
callable[] getCombinationTranslators()
Returns combination translators.
callable[] getFunctionTranslators()
Returns function translators.
callable[] getPseudoClassTranslators()
Returns pseudo-class translators.
callable[] getAttributeMatchingTranslators()
Returns attribute operation translators.
__construct(Translator $translator)
Constructor.
XPathExpr translateLang(XPathExpr $xpath, FunctionNode $function)
string getName()
Returns extension name.
Please login to continue.