Symfony\Component\CssSelector\XPath
Translator::addAttributeMatching() public WC 1.0
{} Это метод класса: Translator{}
Хуков нет.
Возвращает
XPathExpr.
Использование
$Translator = new Translator(); $Translator->addAttributeMatching( $xpath, $operator, $attribute, $value );
- $xpath(XPathExpr) (обязательный)
- -
- $operator(строка) (обязательный)
- -
- $attribute(строка) (обязательный)
- -
- $value(строка) (обязательный)
- -
Код Translator::addAttributeMatching() Translator::addAttributeMatching WC 5.0.0
public function addAttributeMatching(XPathExpr $xpath, $operator, $attribute, $value)
{
if (!isset($this->attributeMatchingTranslators[$operator])) {
throw new ExpressionErrorException(sprintf('Attribute matcher operator "%s" not supported.', $operator));
}
return call_user_func($this->attributeMatchingTranslators[$operator], $xpath, $attribute, $value);
}