ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Twig_NodeVisitorInterface is the interface the all node visitor classes must implement. More...
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... | |
Twig_NodeVisitorInterface is the interface the all node visitor classes must implement.
Definition at line 17 of file NodeVisitorInterface.php.
Twig_NodeVisitorInterface::enterNode | ( | Twig_NodeInterface | $node, |
Twig_Environment | $env | ||
) |
Called before child nodes are visited.
Implemented in CExtDisablingNodeVisitor, Twig_Tests_EnvironmentTest_NodeVisitor, and Twig_BaseNodeVisitor.
Referenced by Twig_NodeTraverser\traverseForVisitor().
Twig_NodeVisitorInterface::getPriority | ( | ) |
Returns the priority for this visitor.
Priority should be between -10 and 10 (0 is the default).
Implemented in CExtDisablingNodeVisitor, Twig_Tests_EnvironmentTest_NodeVisitor, Twig_NodeVisitor_Optimizer, Twig_NodeVisitor_Escaper, Twig_NodeVisitor_SafeAnalysis, Twig_NodeVisitor_Sandbox, and Twig_Profiler_NodeVisitor_Profiler.
Referenced by Twig_NodeTraverser\addVisitor().
Twig_NodeVisitorInterface::leaveNode | ( | Twig_NodeInterface | $node, |
Twig_Environment | $env | ||
) |
Called after child nodes are visited.
Implemented in CExtDisablingNodeVisitor, Twig_Tests_EnvironmentTest_NodeVisitor, and Twig_BaseNodeVisitor.
Referenced by Twig_NodeTraverser\traverseForVisitor().