class NodeExtension extends AbstractExtension
XPath expression translator node extension.
This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect.
Constants
ELEMENT_NAME_IN_LOWER_CASE | |
ATTRIBUTE_NAME_IN_LOWER_CASE | |
ATTRIBUTE_VALUE_IN_LOWER_CASE |
Methods
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(int $flags)
Constructor.
NodeExtension setFlag(int $flag, bool $on)
bool hasFlag(int $flag)
XPathExpr translateSelector(SelectorNode $node, Translator $translator)
XPathExpr translateCombinedSelector(CombinedSelectorNode $node, Translator $translator)
XPathExpr translateNegation(NegationNode $node, Translator $translator)
XPathExpr translateFunction(FunctionNode $node, Translator $translator)
XPathExpr translatePseudo(PseudoNode $node, Translator $translator)
XPathExpr translateAttribute(AttributeNode $node, Translator $translator)
XPathExpr translateClass(ClassNode $node, Translator $translator)
XPathExpr translateHash(HashNode $node, Translator $translator)
XPathExpr translateElement(ElementNode $node)
string getName()
Returns extension name.
Please login to continue.