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. |
|
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
includejs.php
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 * @license GNU General Public License, version 2 (GPL-2.0)
08 *
09 * For full copyright and license information, please see
10 * the docs/CREDITS.txt file.
11 *
12 */
13
14 namespace phpbb\template\twig\tokenparser;
15
16 class includejs extends \Twig\TokenParser\AbstractTokenParser
17 {
18 /**
19 * Parses a token and returns a node.
20 *
21 * @param \Twig\Token $token A Twig\Token instance
22 *
23 * @return \Twig\Node\Node A Twig\Node instance
24 */
25 public function parse(\Twig\Token $token)
26 {
27 $expr = $this->parser->getExpressionParser()->parseExpression();
28
29 $stream = $this->parser->getStream();
30 $stream->expect(\Twig\Token::BLOCK_END_TYPE);
31
32 return new \phpbb\template\twig\node\includejs($expr, $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 'INCLUDEJS';
43 }
44 }
45