BlockTokenParser
extends AbstractTokenParser
in package
Marks a section of a template as being reusable.
{% block head %}
<title>{% block title %}{% endblock %} - My Webpage</title> {% endblock %}Table of Contents
- $parser : Parser
- decideBlockEnd() : mixed
- getTag() : mixed
- parse() : mixed
- setParser() : mixed
- Sets the parser associated with this token parser.
Properties
$parser
protected
Parser
$parser
Methods
decideBlockEnd()
public
decideBlockEnd(Token $token) : mixed
Parameters
- $token : Token
Return values
mixed —getTag()
public
getTag() : mixed
Return values
mixed —parse()
public
parse(Token $token) : mixed
Parameters
- $token : Token
Return values
mixed —setParser()
Sets the parser associated with this token parser.
public
setParser(Parser $parser) : mixed
Parameters
- $parser : Parser