ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
NodeVisitorInterface.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of Twig.
5  *
6  * (c) Fabien Potencier
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11 
18 {
24  public function enterNode(Twig_NodeInterface $node, Twig_Environment $env);
25 
31  public function leaveNode(Twig_NodeInterface $node, Twig_Environment $env);
32 
40  public function getPriority();
41 }
42 
43 class_alias('Twig_NodeVisitorInterface', 'Twig\NodeVisitor\NodeVisitorInterface', false);
44 class_exists('Twig_Environment');
45 class_exists('Twig_Node');
Represents a node in the AST.
enterNode(Twig_NodeInterface $node, Twig_Environment $env)
Called before child nodes are visited.
getPriority()
Returns the priority for this visitor.
$env
Twig_NodeVisitorInterface is the interface the all node visitor classes must implement.
Stores the Twig configuration.
Definition: Environment.php:17
leaveNode(Twig_NodeInterface $node, Twig_Environment $env)
Called after child nodes are visited.