PHP Class SimpleHtmlLexer, simpletest

Inheritance: extends SimpleLexer
Afficher le fichier Open project: simpletest/simpletest Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( SimpleSaxParser $parser ) Sets up the lexer with case insensitive matching and adds the HTML handlers.

Méthodes protégées

Méthode Description
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.

Method Details

__construct() public méthode

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

addAttributeTokens() protected méthode

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

addInTagTokens() protected méthode

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

addSkipping() protected méthode

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

addTag() protected méthode

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

getParsedTags() protected méthode

List of parsed tags. Others are ignored.
protected getParsedTags ( ) : array
Résultat array List of searched for tags.