Sets up the lexer in case insensitive matching by default.
public __construct ( SimpleSaxParser $parser, string $start = 'accept', boolean $case = false ) | ||
$parser | SimpleSaxParser | Handling strategy by reference. |
$start | string | Starting handler. |
$case | boolean | True for case sensitive. |
/** * Sets up the lexer with case insensitive matching * and adds the HTML handlers. * @param SimpleSaxParser $parser Handling strategy by * reference. * @access public */ function __construct($parser, $tags = null) { if (is_array($tags)) { $this->parsedTags = $tags; } parent::__construct($parser, 'text'); $this->mapHandler('text', 'acceptTextToken'); $this->addSkipping(); foreach ($this->getParsedTags() as $tag) { $this->addTag($tag); } $this->addInTagTokens(); }
/** * Sets up the lexer with case insensitive matching * and adds the HTML handlers. * @param SimpleSaxParser $parser Handling strategy by * reference. * @access public */ function __construct($parser) { parent::__construct($parser, 'text'); $this->mapHandler('text', 'acceptTextToken'); $this->addSkipping(); foreach ($this->getParsedTags() as $tag) { $this->addTag($tag); } $this->addInTagTokens(); }