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.

callable[]
getCombinationTranslators()

Returns combination translators.

callable[]
getFunctionTranslators()

Returns function translators.

callable[]
getPseudoClassTranslators()

Returns pseudo-class translators.

callable[]
getAttributeMatchingTranslators()

Returns attribute operation translators.

translateExists(XPathExpr $xpath, string $attribute, string $value)

No description

translateEquals(XPathExpr $xpath, string $attribute, string $value)

No description

translateIncludes(XPathExpr $xpath, string $attribute, string $value)

No description

translateDashMatch(XPathExpr $xpath, string $attribute, string $value)

No description

translatePrefixMatch(XPathExpr $xpath, string $attribute, string $value)

No description

translateSuffixMatch(XPathExpr $xpath, string $attribute, string $value)

No description

translateSubstringMatch(XPathExpr $xpath, string $attribute, string $value)

No description

translateDifferent(XPathExpr $xpath, string $attribute, string $value)

No description

string
getName()

Returns extension name.

Details

in AbstractExtension at line 29
callable[] getNodeTranslators()

Returns node translators.

These callables will receive the node as first argument and the translator as second argument.

Return Value

callable[]

in AbstractExtension at line 37
callable[] getCombinationTranslators()

Returns combination translators.

Return Value

callable[]

in AbstractExtension at line 45
callable[] getFunctionTranslators()

Returns function translators.

Return Value

callable[]

in AbstractExtension at line 53
callable[] getPseudoClassTranslators()

Returns pseudo-class translators.

Return Value

callable[]

at line 32
callable[] getAttributeMatchingTranslators()

Returns attribute operation translators.

Return Value

callable[]

at line 53
XPathExpr translateExists(XPathExpr $xpath, string $attribute, string $value)

Parameters

XPathExpr $xpath
string $attribute
string $value

Return Value

XPathExpr

at line 65
XPathExpr translateEquals(XPathExpr $xpath, string $attribute, string $value)

Parameters

XPathExpr $xpath
string $attribute
string $value

Return Value

XPathExpr

at line 77
XPathExpr translateIncludes(XPathExpr $xpath, string $attribute, string $value)

Parameters

XPathExpr $xpath
string $attribute
string $value

Return Value

XPathExpr

at line 93
XPathExpr translateDashMatch(XPathExpr $xpath, string $attribute, string $value)

Parameters

XPathExpr $xpath
string $attribute
string $value

Return Value

XPathExpr

at line 110
XPathExpr translatePrefixMatch(XPathExpr $xpath, string $attribute, string $value)

Parameters

XPathExpr $xpath
string $attribute
string $value

Return Value

XPathExpr

at line 126
XPathExpr translateSuffixMatch(XPathExpr $xpath, string $attribute, string $value)

Parameters

XPathExpr $xpath
string $attribute
string $value

Return Value

XPathExpr

at line 143
XPathExpr translateSubstringMatch(XPathExpr $xpath, string $attribute, string $value)

Parameters

XPathExpr $xpath
string $attribute
string $value

Return Value

XPathExpr

at line 159
XPathExpr translateDifferent(XPathExpr $xpath, string $attribute, string $value)

Parameters

XPathExpr $xpath
string $attribute
string $value

Return Value

XPathExpr

at line 171
string getName()

Returns extension name.

Return Value

string