PHP 클래스 SimpleHtmlLexer, simpletest

상속: extends SimpleLexer
파일 보기 프로젝트 열기: simpletest/simpletest 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( SimpleSaxParser $parser ) Sets up the lexer with case insensitive matching and adds the HTML handlers.

보호된 메소드들

메소드 설명
addAttributeTokens ( ) Matches attributes that are either single quoted, double quoted or unquoted.
addInTagTokens ( ) Pattern matches to parse the inside of a tag including the attributes and their quoting.
addSkipping ( ) The lexer has to skip certain sections such as server code, client code and styles.
addTag ( string $tag ) Pattern matches to start and end a tag.
getParsedTags ( ) : array List of parsed tags. Others are ignored.

메소드 상세

__construct() 공개 메소드

Sets up the lexer with case insensitive matching and adds the HTML handlers.
public __construct ( SimpleSaxParser $parser )
$parser SimpleSaxParser Handling strategy by reference.

addAttributeTokens() 보호된 메소드

Matches attributes that are either single quoted, double quoted or unquoted.
protected addAttributeTokens ( )

addInTagTokens() 보호된 메소드

Pattern matches to parse the inside of a tag including the attributes and their quoting.
protected addInTagTokens ( )

addSkipping() 보호된 메소드

The lexer has to skip certain sections such as server code, client code and styles.
protected addSkipping ( )

addTag() 보호된 메소드

Pattern matches to start and end a tag.
protected addTag ( string $tag )
$tag string Name of tag to scan for.

getParsedTags() 보호된 메소드

List of parsed tags. Others are ignored.
protected getParsedTags ( ) : array
리턴 array List of searched for tags.