PHP 클래스 QueryPath\CSS\DOMTraverser\Util

파일 보기 프로젝트 열기: microweber/microweber 1 사용 예제들

공개 메소드들

메소드 설명
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 )