[ Index ] |
PHP Cross Reference of phpBB-3.3.14-deutsch |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package s9e\TextFormatter 5 * @copyright Copyright (c) 2010-2022 The s9e authors 6 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 7 */ 8 namespace s9e\TextFormatter\Plugins; 9 10 use s9e\TextFormatter\Parser; 11 12 abstract class ParserBase 13 { 14 /** 15 * @var array 16 */ 17 protected $config; 18 19 /** 20 * @var Parser 21 */ 22 protected $parser; 23 24 /** 25 * Constructor 26 * 27 * @param Parser $parser 28 * @param array $config 29 */ 30 final public function __construct(Parser $parser, array $config) 31 { 32 $this->parser = $parser; 33 $this->config = $config; 34 35 $this->setUp(); 36 } 37 38 /** 39 * Plugin's setup 40 * 41 * @return void 42 */ 43 protected function setUp() 44 { 45 } 46 47 /** 48 * @param string $text 49 * @param array $matches If the config array has a "regexp" key, the corresponding matches are 50 * passed as second parameter. Otherwise, an empty array is passed 51 * @return void 52 */ 53 abstract public function parse($text, array $matches); 54 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Mon Nov 25 19:05:08 2024 | Cross-referenced by PHPXref 0.7.1 |