PHP Класс SimpleHtmlLexer, simpletest

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

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

Метод Описание
__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.