ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Twig_TokenParser_Flush Class Reference

Flushes the output to the client. More...

+ Inheritance diagram for Twig_TokenParser_Flush:
+ Collaboration diagram for Twig_TokenParser_Flush:

Public Member Functions

 parse (Twig_Token $token)
 Parses a token and returns a node. More...
 
 getTag ()
 Gets the tag name associated with this token parser. More...
 
- Public Member Functions inherited from Twig_TokenParser
 setParser (Twig_Parser $parser)
 Sets the parser associated with this token parser. More...
 

Additional Inherited Members

- Protected Attributes inherited from Twig_TokenParser
 $parser
 

Detailed Description

Flushes the output to the client.

See also
flush()

Definition at line 19 of file Flush.php.

Member Function Documentation

◆ getTag()

Twig_TokenParser_Flush::getTag ( )

Gets the tag name associated with this token parser.

Returns
string The tag name

Implements Twig_TokenParserInterface.

Definition at line 28 of file Flush.php.

Referenced by parse().

29  {
30  return 'flush';
31  }
+ Here is the caller graph for this function:

◆ parse()

Twig_TokenParser_Flush::parse ( Twig_Token  $token)

Parses a token and returns a node.

Returns
Twig_NodeInterface
Exceptions
Twig_Error_Syntax

Implements Twig_TokenParserInterface.

Definition at line 21 of file Flush.php.

References Twig_Token\BLOCK_END_TYPE, Twig_Token\getLine(), and getTag().

22  {
23  $this->parser->getStream()->expect(Twig_Token::BLOCK_END_TYPE);
24 
25  return new Twig_Node_Flush($token->getLine(), $this->getTag());
26  }
getTag()
Gets the tag name associated with this token parser.
Definition: Flush.php:28
Represents a flush node.
Definition: Flush.php:17
getLine()
Definition: Token.php:87
const BLOCK_END_TYPE
Definition: Token.php:30
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: