PHP 클래스 Essence\Dom\Tag

파일 보기 프로젝트 열기: benjamminf/craft-embedded-assets 1 사용 예제들

공개 메소드들

메소드 설명
get ( string $name, mixed $default = '' ) : mixed Returns the value of an attribute.
matches ( string $name, string $pattern, array &$matches = [] ) : boolean Tests if the value of an attribute matches the given pattern.

메소드 상세

get() 추상적인 공개 메소드

Returns the value of an attribute.
abstract public get ( string $name, mixed $default = '' ) : mixed
$name string Attribute name.
$default mixed Default value to be returned if the attribute doesn't exist.
리턴 mixed Attribute value, or $default.

matches() 공개 메소드

Tests if the value of an attribute matches the given pattern.
public matches ( string $name, string $pattern, array &$matches = [] ) : boolean
$name string Attribute name.
$pattern string Pattern.
$matches array Search results.
리턴 boolean If the attribute value matches the pattern.