Verzeichnisstruktur phpBB-3.3.16


Veröffentlicht
27.04.2026

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

Code.php

Zuletzt modifiziert: 01.05.2026, 11:28 - Dateigröße: 872.00 Bytes


 01  <?php
 02   
 03  /**
 04  * @package   s9e\TextFormatter
 05  * @copyright Copyright (c) 2010-2022 The s9e authors
 06  * @license   http://www.opensource.org/licenses/mit-license.php The MIT License
 07  */
 08  namespace s9e\TextFormatter\Configurator\JavaScript;
 09   
 10  use s9e\TextFormatter\Configurator\FilterableConfigValue;
 11   
 12  /**
 13  * Wrapper used to identify strings that should be treated as JavaScript source code
 14  */
 15  class Code implements FilterableConfigValue
 16  {
 17      /**
 18      * @var string JavaScript source code
 19      */
 20      public $code;
 21   
 22      /**
 23      * Constructor
 24      *
 25      * @param  string $code JavaScript source code
 26      */
 27      public function __construct($code)
 28      {
 29          $this->code = $code;
 30      }
 31   
 32      /**
 33      * Return this source code
 34      *
 35      * @return string
 36      */
 37      public function __toString()
 38      {
 39          return (string) $this->code;
 40      }
 41   
 42      /**
 43      * {@inheritdoc}
 44      */
 45      public function filterConfig($target)
 46      {
 47          return ($target === 'JS') ? $this : null;
 48      }
 49  }