Abstract Class Twig_TokenParser

InheritanceTwig_TokenParser
ImplementsTwig_TokenParserInterface
SubclassesTwig_TokenParser_AutoEscape, Twig_TokenParser_Block, Twig_TokenParser_Do, Twig_TokenParser_Embed, Twig_TokenParser_Extends, Twig_TokenParser_Filter, Twig_TokenParser_Flush, Twig_TokenParser_For, Twig_TokenParser_From, Twig_TokenParser_If, Twig_TokenParser_Import, Twig_TokenParser_Include, Twig_TokenParser_Macro, Twig_TokenParser_Sandbox, Twig_TokenParser_Set, Twig_TokenParser_Spaceless, Twig_TokenParser_Use

Base class for all token parsers.

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$parser Twig_Parser Twig_TokenParser

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getTag() Gets the tag name associated with this token parser. Twig_TokenParserInterface
parse() Parses a token and returns a node. Twig_TokenParserInterface
setParser() Sets the parser associated with this token parser. Twig_TokenParser

Property Details

$parser protected property
protected Twig_Parser $parser null

Method Details

setParser() public method

Sets the parser associated with this token parser.

public void setParser ( Twig_Parser $parser )
$parser Twig_Parser

A Twig_Parser instance