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

Markup.php

Zuletzt modifiziert: 02.04.2025, 15:03 - Dateigröße: 983.00 Bytes


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   * Marks a content as safe.
16   *
17   * @author Fabien Potencier <fabien@symfony.com>
18   */
19  class Markup implements \Countable, \JsonSerializable
20  {
21      private $content;
22      private $charset;
23   
24      public function __construct($content, $charset)
25      {
26          $this->content = (string) $content;
27          $this->charset = $charset;
28      }
29   
30      public function __toString()
31      {
32          return $this->content;
33      }
34   
35      /**
36       * @return int
37       */
38      #[\ReturnTypeWillChange]
39      public function count()
40      {
41          return mb_strlen($this->content, $this->charset);
42      }
43   
44      /**
45       * @return mixed
46       */
47      #[\ReturnTypeWillChange]
48      public function jsonSerialize()
49      {
50          return $this->content;
51      }
52  }
53   
54  class_alias('Twig\Markup', 'Twig_Markup');
55