XPath\Extension\AttributeMatchingExtension (Component\CssSelector)
Symfony\Component\CssSelector\XPath\Extension\AttributeMatchingExtension
class AttributeMatchingExtension extends AbstractExtension
XPath expression translator attribute 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. | from AbstractExtension |
callable[] | getPseudoClassTranslators() Returns pseudo-class translators. | from AbstractExtension |
callable[] | getAttributeMatchingTranslators() Returns attribute operation translators. | |
XPathExpr | translateExists(XPathExpr $xpath, string $attribute, string $value) | |
XPathExpr | translateEquals(XPathExpr $xpath, string $attribute, string $value) | |
XPathExpr | translateIncludes(XPathExpr $xpath, string $attribute, string $value) | |
XPathExpr | translateDashMatch(XPathExpr $xpath, string $attribute, string $value) | |
XPathExpr | translatePrefixMatch(XPathExpr $xpath, string $attribute, string $value) | |
XPathExpr | translateSuffixMatch(XPathExpr $xpath, string $attribute, string $value) | |
XPathExpr | translateSubstringMatch(XPathExpr $xpath, string $attribute, string $value) | |
XPathExpr | translateDifferent(XPathExpr $xpath, string $attribute, string $value) | |
string | getName() Returns extension name. |
Details
public callable[] getNodeTranslators()
Returns node translators.
These callables will receive the node as first argument and the translator as second argument.
public callable[] getCombinationTranslators()
Returns combination translators.
public callable[] getFunctionTranslators()
Returns function translators.
public callable[] getPseudoClassTranslators()
Returns pseudo-class translators.
public callable[] getAttributeMatchingTranslators()
Returns attribute operation translators.
public XPathExpr translateExists(XPathExpr $xpath, string $attribute, string $value)
public XPathExpr translateEquals(XPathExpr $xpath, string $attribute, string $value)
public XPathExpr translateIncludes(XPathExpr $xpath, string $attribute, string $value)
public XPathExpr translateDashMatch(XPathExpr $xpath, string $attribute, string $value)
public XPathExpr translatePrefixMatch(XPathExpr $xpath, string $attribute, string $value)
public XPathExpr translateSuffixMatch(XPathExpr $xpath, string $attribute, string $value)
public XPathExpr translateSubstringMatch(XPathExpr $xpath, string $attribute, string $value)
public XPathExpr translateDifferent(XPathExpr $xpath, string $attribute, string $value)
public string getName()
Returns extension name.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/CssSelector/XPath/Extension/AttributeMatchingExtension.html