PHP Класс QueryPath\CSS\DOMTraverser\Util

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
matchesAttribute ( $node, $name, $value = null, $operation = EventHandler::isExactly ) Check whether the given DOMElement has the given attribute.
matchesAttributeNS ( $node, $name, $nsuri, $value = null, $operation = EventHandler::isExactly ) Check whether the given DOMElement has the given namespaced attribute.
matchesAttributeValue ( $needle, $haystack, $operation ) Check for attr value matches based on an operation.
parseAnB ( $rule ) Parse an an+b rule for CSS pseudo-classes.
removeQuotes ( $str ) Remove leading and trailing quotes.

Описание методов

matchesAttribute() публичный статический Метод

Check whether the given DOMElement has the given attribute.
public static matchesAttribute ( $node, $name, $value = null, $operation = EventHandler::isExactly )

matchesAttributeNS() публичный статический Метод

Check whether the given DOMElement has the given namespaced attribute.
public static matchesAttributeNS ( $node, $name, $nsuri, $value = null, $operation = EventHandler::isExactly )

matchesAttributeValue() публичный статический Метод

Check for attr value matches based on an operation.
public static matchesAttributeValue ( $needle, $haystack, $operation )

parseAnB() публичный статический Метод

Invalid rules return array(0, 0). This is per the spec.
public static parseAnB ( $rule )
$rule Some rule in the an+b format.

removeQuotes() публичный статический Метод

Remove leading and trailing quotes.
public static removeQuotes ( $str )