PHP Class Twig_TokenParser_For, php-framework-benchmarks


    {% for user in users %}
  • {{ user.username|e }}
  • {% endfor %}
Inheritance: extends Twig_TokenParser
Datei anzeigen Open project: pmjones/php-framework-benchmarks

Public Methods

Method Description
decideForEnd ( $token )
decideForFork ( $token )
getTag ( ) Gets the tag name associated with this token parser.
parse ( Twig_Token $token ) : Twig_NodeInterface Parses a token and returns a node.

Method Details

decideForEnd() public method

public decideForEnd ( $token )

decideForFork() public method

public decideForFork ( $token )

getTag() public method

Gets the tag name associated with this token parser.
public getTag ( )

parse() public method

Parses a token and returns a node.
public parse ( Twig_Token $token ) : Twig_NodeInterface
$token Twig_Token A Twig_Token instance
return Twig_NodeInterface A Twig_NodeInterface instance