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 |
AbstractRecursiveMatcher.php
01 <?php declare(strict_types=1);
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\RecursiveParser;
09
10 use s9e\TextFormatter\Configurator\RecursiveParser;
11
12 abstract class AbstractRecursiveMatcher implements MatcherInterface
13 {
14 /**
15 * @var RecursiveParser
16 */
17 protected $parser;
18
19 /**
20 * @param RecursiveParser $parser
21 * @return void
22 */
23 public function __construct(RecursiveParser $parser)
24 {
25 $this->parser = $parser;
26 }
27
28 /**
29 * Parse given string and return its value
30 *
31 * @param string $str
32 * @param string $restrict Pipe-separated list of allowed matches (ignored if empty)
33 * @return mixed
34 */
35 protected function recurse(string $str, string $restrict = '')
36 {
37 return $this->parser->parse($str, $restrict)['value'];
38 }
39 }