ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Twig_NodeTraverser is a node traverser. More...
Public Member Functions | |
__construct (Twig_Environment $env, array $visitors=array()) | |
addVisitor (Twig_NodeVisitorInterface $visitor) | |
traverse (Twig_NodeInterface $node) | |
Traverses a node and calls the registered visitors. More... | |
Protected Member Functions | |
traverseForVisitor (Twig_NodeVisitorInterface $visitor, Twig_NodeInterface $node=null) | |
Protected Attributes | |
$env | |
$visitors = array() | |
Twig_NodeTraverser is a node traverser.
It visits all nodes and their children and calls the given visitor for each.
Definition at line 21 of file NodeTraverser.php.
Twig_NodeTraverser::__construct | ( | Twig_Environment | $env, |
array | $visitors = array() |
||
) |
Twig_Environment | $env | |
Twig_NodeVisitorInterface[] | $visitors |
Definition at line 30 of file NodeTraverser.php.
References $env, $visitors, and addVisitor().
Twig_NodeTraverser::addVisitor | ( | Twig_NodeVisitorInterface | $visitor | ) |
Definition at line 38 of file NodeTraverser.php.
References array, and Twig_NodeVisitorInterface\getPriority().
Referenced by __construct().
Twig_NodeTraverser::traverse | ( | Twig_NodeInterface | $node | ) |
Traverses a node and calls the registered visitors.
Definition at line 52 of file NodeTraverser.php.
References $visitors, and traverseForVisitor().
|
protected |
Definition at line 64 of file NodeTraverser.php.
References $n, Twig_NodeVisitorInterface\enterNode(), and Twig_NodeVisitorInterface\leaveNode().
Referenced by traverse().
|
protected |
Definition at line 23 of file NodeTraverser.php.
Referenced by __construct().
|
protected |
Definition at line 24 of file NodeTraverser.php.
Referenced by __construct(), and traverse().