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. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
AttributeList.php
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\Collections;
09
10 use s9e\TextFormatter\Configurator\Validators\AttributeName;
11
12 /**
13 * Hosts a list of attribute names. The config array it returns contains the names, deduplicated and
14 * sorted
15 */
16 class AttributeList extends NormalizedList
17 {
18 /**
19 * Normalize the name of an attribute
20 *
21 * @param string $attrName
22 * @return string
23 */
24 public function normalizeValue($attrName)
25 {
26 return AttributeName::normalize($attrName);
27 }
28
29 /**
30 * {@inheritdoc}
31 */
32 public function asConfig()
33 {
34 $list = array_unique($this->items);
35 sort($list);
36
37 return $list;
38 }
39 }