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

Source.php

Zuletzt modifiziert: 02.04.2025, 15:03 - Dateigröße: 1.03 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;
13   
14  /**
15   * Holds information about a non-compiled Twig template.
16   *
17   * @author Fabien Potencier <fabien@symfony.com>
18   */
19  final class Source
20  {
21      private $code;
22      private $name;
23      private $path;
24   
25      /**
26       * @param string $code The template source code
27       * @param string $name The template logical name
28       * @param string $path The filesystem path of the template if any
29       */
30      public function __construct(string $code, string $name, string $path = '')
31      {
32          $this->code = $code;
33          $this->name = $name;
34          $this->path = $path;
35      }
36   
37      public function getCode(): string
38      {
39          return $this->code;
40      }
41   
42      public function getName()
43      {
44          return $this->name;
45      }
46   
47      public function getPath(): string
48      {
49          return $this->path;
50      }
51  }
52   
53  class_alias('Twig\Source', 'Twig_Source');
54