Verzeichnisstruktur phpBB-3.3.15


Veröffentlicht
28.08.2024

So funktioniert es


Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück

Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

NodeVisitorInterface.php

Zuletzt modifiziert: 02.04.2025, 15:03 - Dateigröße: 1.21 KiB


01  <?php
02   
03  /*
04   * This file is part of Twig.
05   *
06   * (c) Fabien Potencier
07   *
08   * For the full copyright and license information, please view the LICENSE
09   * file that was distributed with this source code.
10   */
11   
12  namespace Twig\NodeVisitor;
13   
14  use Twig\Environment;
15  use Twig\Node\Node;
16   
17  /**
18   * Interface for node visitor classes.
19   *
20   * @author Fabien Potencier <fabien@symfony.com>
21   */
22  interface NodeVisitorInterface
23  {
24      /**
25       * Called before child nodes are visited.
26       *
27       * @return Node The modified node
28       */
29      public function enterNode(Node $node, Environment $env);
30   
31      /**
32       * Called after child nodes are visited.
33       *
34       * @return Node|null The modified node or null if the node must be removed
35       */
36      public function leaveNode(Node $node, Environment $env);
37   
38      /**
39       * Returns the priority for this visitor.
40       *
41       * Priority should be between -10 and 10 (0 is the default).
42       *
43       * @return int The priority level
44       */
45      public function getPriority();
46  }
47   
48  class_alias('Twig\NodeVisitor\NodeVisitorInterface', 'Twig_NodeVisitorInterface');
49   
50  // Ensure that the aliased name is loaded to keep BC for classes implementing the typehint with the old aliased name.
51  class_exists('Twig\Environment');
52