Verzeichnisstruktur phpBB-3.2.0


Veröffentlicht
06.01.2017

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

includeparser.php

Zuletzt modifiziert: 09.10.2024, 12:55 - Dateigröße: 1.05 KiB


01  <?php
02  /**
03  *
04  * This file is part of the phpBB Forum Software package.
05  *
06  * @copyright (c) phpBB Limited <https://www.phpbb.com>
07  * @copyright Portions (c) 2009 Fabien Potencier, Armin Ronacher
08  * @license GNU General Public License, version 2 (GPL-2.0)
09  *
10  * For full copyright and license information, please see
11  * the docs/CREDITS.txt file.
12  *
13  */
14   
15  namespace phpbb\template\twig\tokenparser;
16   
17  class includeparser extends \Twig_TokenParser_Include
18  {
19      /**
20      * Parses a token and returns a node.
21      *
22      * @param \Twig_Token $token A Twig_Token instance
23      *
24      * @return \Twig_NodeInterface A Twig_NodeInterface instance
25      */
26      public function parse(\Twig_Token $token)
27      {
28          $expr = $this->parser->getExpressionParser()->parseExpression();
29   
30          list($variables, $only, $ignoreMissing) = $this->parseArguments();
31   
32          return new \phpbb\template\twig\node\includenode($expr, $variables, $only, $ignoreMissing, $token->getLine(), $this->getTag());
33      }
34   
35      /**
36      * Gets the tag name associated with this token parser.
37      *
38      * @return string The tag name
39      */
40      public function getTag()
41      {
42          return 'INCLUDE';
43      }
44  }
45