1 | <?php |
||
33 | class PuliDirTagger extends Twig_BaseNodeVisitor |
||
34 | { |
||
35 | /** |
||
36 | * @var Twig_Node_Module|null |
||
37 | */ |
||
38 | private $moduleNode; |
||
39 | |||
40 | /** |
||
41 | * Called before child nodes are visited. |
||
42 | * |
||
43 | * @param Twig_Node $node The node to visit |
||
44 | * @param Twig_Environment $env The Twig environment instance |
||
45 | * |
||
46 | * @return Twig_Node The modified node |
||
47 | */ |
||
48 | 23 | protected function doEnterNode(Twig_Node $node, Twig_Environment $env) |
|
56 | |||
57 | /** |
||
58 | * Called after child nodes are visited. |
||
59 | * |
||
60 | * @param Twig_Node $node The node to visit |
||
61 | * @param Twig_Environment $env The Twig environment instance |
||
62 | * |
||
63 | * @return Twig_Node|false The modified node or false if the node must be removed |
||
64 | */ |
||
65 | 23 | protected function doLeaveNode(Twig_Node $node, Twig_Environment $env) |
|
93 | |||
94 | /** |
||
95 | * Returns the priority for this visitor. |
||
96 | * |
||
97 | * Priority should be between -10 and 10 (0 is the default). |
||
98 | * |
||
99 | * @return int The priority level |
||
100 | */ |
||
101 | 23 | public function getPriority() |
|
107 | } |
||
108 |