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

TokenParserInterface.php

Zuletzt modifiziert: 02.04.2025, 15:03 - Dateigröße: 1.12 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\TokenParser;
13   
14  use Twig\Error\SyntaxError;
15  use Twig\Node\Node;
16  use Twig\Parser;
17  use Twig\Token;
18   
19  /**
20   * Interface implemented by token parsers.
21   *
22   * @author Fabien Potencier <fabien@symfony.com>
23   */
24  interface TokenParserInterface
25  {
26      /**
27       * Sets the parser associated with this token parser.
28       */
29      public function setParser(Parser $parser);
30   
31      /**
32       * Parses a token and returns a node.
33       *
34       * @return Node
35       *
36       * @throws SyntaxError
37       */
38      public function parse(Token $token);
39   
40      /**
41       * Gets the tag name associated with this token parser.
42       *
43       * @return string The tag name
44       */
45      public function getTag();
46  }
47   
48  class_alias('Twig\TokenParser\TokenParserInterface', 'Twig_TokenParserInterface');
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\Token');
52  class_exists('Twig\Parser');
53