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

HashmapFilter.php

Zuletzt modifiziert: 01.05.2026, 11:28 - Dateigröße: 730.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\Parser\AttributeFilters;
 09   
 10  class HashmapFilter
 11  {
 12      /**
 13      * Filter a value through a hash map
 14      *
 15      * @param  string $attrValue Original value
 16      * @param  array  $map       Associative array
 17      * @param  bool   $strict    Whether this map is strict (values with no match are invalid)
 18      * @return mixed             Filtered value, or FALSE if invalid
 19      */
 20      public static function filter($attrValue, array $map, $strict)
 21      {
 22          if (isset($map[$attrValue]))
 23          {
 24              return $map[$attrValue];
 25          }
 26   
 27          return ($strict) ? false : $attrValue;
 28      }
 29  }