Метод | Описание | |
---|---|---|
__construct ( SimplePhpPageBuilder $listener ) | Sets the listener. | |
acceptAttributeToken ( string $token, integer $event ) : boolean | Part of the tag data. | |
acceptEndToken ( string $token, integer $event ) : boolean | Accepts a token from the end tag mode. The element name is converted to lower case. | |
acceptEntityToken ( string $token, integer $event ) : boolean | A character entity. | |
acceptStartToken ( string $token, integer $event ) : boolean | Accepts a token from the tag mode. | |
acceptTextToken ( string $token, integer $event ) : boolean | Character data between tags regarded as important. | |
createLexer ( SimpleSaxParser &$parser ) : SimpleLexer | Sets up the matching lexer. Starts in 'text' mode. | |
ignore ( string $token, integer $event ) : boolean | Incoming data to be ignored. | |
parse ( string $raw ) : boolean | Runs the content through the lexer which should call back to the acceptors. |
public __construct ( SimplePhpPageBuilder $listener ) | ||
$listener | SimplePhpPageBuilder | SAX event handler. |
public static createLexer ( SimpleSaxParser &$parser ) : SimpleLexer | ||
$parser | SimpleSaxParser | Event generator, usually $self. |
Результат | SimpleLexer | Lexer suitable for this parser. |