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

EmbedNode.php

Zuletzt modifiziert: 02.04.2025, 15:03 - Dateigröße: 1.43 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\Node;
13   
14  use Twig\Compiler;
15  use Twig\Node\Expression\AbstractExpression;
16  use Twig\Node\Expression\ConstantExpression;
17   
18  /**
19   * Represents an embed node.
20   *
21   * @author Fabien Potencier <fabien@symfony.com>
22   */
23  class EmbedNode extends IncludeNode
24  {
25      // we don't inject the module to avoid node visitors to traverse it twice (as it will be already visited in the main module)
26      public function __construct(string $name, int $index, ?AbstractExpression $variables, bool $only, bool $ignoreMissing, int $lineno, string $tag = null)
27      {
28          parent::__construct(new ConstantExpression('not_used', $lineno), $variables, $only, $ignoreMissing, $lineno, $tag);
29   
30          $this->setAttribute('name', $name);
31          $this->setAttribute('index', $index);
32      }
33   
34      protected function addGetTemplate(Compiler $compiler)
35      {
36          $compiler
37              ->write('$this->loadTemplate(')
38              ->string($this->getAttribute('name'))
39              ->raw(', ')
40              ->repr($this->getTemplateName())
41              ->raw(', ')
42              ->repr($this->getTemplateLine())
43              ->raw(', ')
44              ->string($this->getAttribute('index'))
45              ->raw(')')
46          ;
47      }
48  }
49   
50  class_alias('Twig\Node\EmbedNode', 'Twig_Node_Embed');
51