1 | <?php |
||
22 | class DBBaseModule extends MarkupBaseModule{ |
||
23 | use DatabaseTrait; |
||
24 | |||
25 | /** |
||
26 | * Holds an array of FQN strings to the current base module's children |
||
27 | * |
||
28 | * @var array |
||
29 | * @see \chillerlan\bbcode\Modules\ModuleInfo::$modules |
||
30 | */ |
||
31 | protected $modules = [ |
||
32 | DBTags::class, |
||
33 | ]; |
||
34 | |||
35 | /** |
||
36 | * An array of tags the module is able to process |
||
37 | * |
||
38 | * @var array |
||
39 | * @see \chillerlan\bbcode\Modules\Tagmap::$tags |
||
40 | */ |
||
41 | protected $tags = []; |
||
42 | |||
43 | /** |
||
44 | * An optional array of tags contained in self::$tags which are marked as "noparse" |
||
45 | * |
||
46 | * @var array |
||
47 | * @see \chillerlan\bbcode\Modules\Tagmap::$noparse_tags |
||
48 | */ |
||
49 | protected $noparse_tags = []; |
||
50 | |||
51 | /** |
||
52 | * An optional array of tags contained in self::$tags which are marked as "single tag" |
||
53 | * |
||
54 | * @var array |
||
55 | * @see \chillerlan\bbcode\Modules\Tagmap::$singletags |
||
56 | */ |
||
57 | protected $singletags = []; |
||
58 | |||
59 | /** |
||
60 | * @var \chillerlan\Database\Drivers\DBDriverInterface |
||
61 | */ |
||
62 | protected $DBDriverInterface; |
||
63 | |||
64 | /** |
||
65 | * DBBaseModule constructor. |
||
66 | * |
||
67 | * @param \chillerlan\bbcode\BBTemp|null $bbtemp |
||
68 | */ |
||
69 | public function __construct(BBTemp $bbtemp = null){ |
||
81 | |||
82 | /** |
||
83 | * Holds the current base module's EOL token which will replace any newlines |
||
84 | * |
||
85 | * @var string |
||
86 | * @see \chillerlan\bbcode\Modules\ModuleInfo::$eol_token |
||
87 | */ |
||
88 | protected $eol_token = '<br />'; |
||
89 | |||
90 | /** |
||
91 | * Sanitizes the content to prevent vulnerabilities or compatibility problems |
||
92 | * |
||
93 | * @param $content string to sanitize |
||
94 | * |
||
95 | * @return string |
||
96 | */ |
||
97 | public function sanitize(string $content):string{ |
||
100 | |||
101 | } |
||
102 |