source: pro-violet-viettel/www/deploy/20150304/application/third_party/Twig/NodeVisitorInterface.php @ 780

Last change on this file since 780 was 780, checked in by dungnv, 10 years ago
File size: 1.3 KB
Line 
1<?php
2
3/*
4 * This file is part of Twig.
5 *
6 * (c) 2009 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
12/**
13 * Twig_NodeVisitorInterface is the interface the all node visitor classes must implement.
14 *
15 * @package    twig
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
17 */
18interface Twig_NodeVisitorInterface
19{
20    /**
21     * Called before child nodes are visited.
22     *
23     * @param Twig_NodeInterface $node The node to visit
24     * @param Twig_Environment   $env  The Twig environment instance
25     *
26     * @param Twig_NodeInterface The modified node
27     */
28    function enterNode(Twig_NodeInterface $node, Twig_Environment $env);
29
30    /**
31     * Called after child nodes are visited.
32     *
33     * @param Twig_NodeInterface $node The node to visit
34     * @param Twig_Environment   $env  The Twig environment instance
35     *
36     * @param Twig_NodeInterface The modified node
37     */
38    function leaveNode(Twig_NodeInterface $node, Twig_Environment $env);
39
40    /**
41     * Returns the priority for this visitor.
42     *
43     * Priority should be between -10 and 10 (0 is the default).
44     *
45     * @return integer The priority level
46     */
47    function getPriority();
48}
Note: See TracBrowser for help on using the repository browser.