ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Twig_Tests_EnvironmentTest_NodeVisitor Class Reference
+ Inheritance diagram for Twig_Tests_EnvironmentTest_NodeVisitor:
+ Collaboration diagram for Twig_Tests_EnvironmentTest_NodeVisitor:

Public Member Functions

 enterNode (Twig_NodeInterface $node, Twig_Environment $env)
 Called before child nodes are visited. More...
 
 leaveNode (Twig_NodeInterface $node, Twig_Environment $env)
 Called after child nodes are visited. More...
 
 getPriority ()
 Returns the priority for this visitor. More...
 

Detailed Description

Definition at line 623 of file EnvironmentTest.php.

Member Function Documentation

◆ enterNode()

Twig_Tests_EnvironmentTest_NodeVisitor::enterNode ( Twig_NodeInterface  $node,
Twig_Environment  $env 
)

Called before child nodes are visited.

Returns
Twig_NodeInterface The modified node

Implements Twig_NodeVisitorInterface.

Definition at line 625 of file EnvironmentTest.php.

References $env.

628 {

◆ getPriority()

Twig_Tests_EnvironmentTest_NodeVisitor::getPriority ( )

Returns the priority for this visitor.

Priority should be between -10 and 10 (0 is the default).

Returns
int The priority level

Implements Twig_NodeVisitorInterface.

Definition at line 635 of file EnvironmentTest.php.

635  {
636  return $node;
637  }
638 

◆ leaveNode()

Twig_Tests_EnvironmentTest_NodeVisitor::leaveNode ( Twig_NodeInterface  $node,
Twig_Environment  $env 
)

Called after child nodes are visited.

Returns
Twig_NodeInterface|false The modified node or false if the node must be removed

Implements Twig_NodeVisitorInterface.

Definition at line 630 of file EnvironmentTest.php.

630  {
631  return $node;
632  }
633 

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