1 | <?php |
||
16 | class bbcodes extends base |
||
17 | { |
||
18 | /** @var config */ |
||
19 | protected $config; |
||
20 | |||
21 | /** @var bbcodes_legacy */ |
||
22 | protected $trim_bbcodes_legacy; |
||
23 | |||
24 | /** @var utils|null */ |
||
25 | protected $text_formatter_utils; |
||
26 | |||
27 | /** @var array Data array of BBCodes to remove */ |
||
28 | protected $data; |
||
29 | |||
30 | /** |
||
31 | * Constructor |
||
32 | * |
||
33 | * @param config $config Config object |
||
34 | * @param bbcodes_legacy $trim_bbcodes_legacy Legacy BBCodes trim tool |
||
35 | * @param utils|null $text_formatter_utils Text Formatter Utils |
||
36 | */ |
||
37 | 25 | public function __construct(config $config, bbcodes_legacy $trim_bbcodes_legacy, utils $text_formatter_utils = null) |
|
43 | |||
44 | /** |
||
45 | * @inheritdoc |
||
46 | */ |
||
47 | 25 | public function is_available() |
|
51 | |||
52 | /** |
||
53 | * @inheritdoc |
||
54 | */ |
||
55 | public function run() |
||
67 | |||
68 | /** |
||
69 | * @inheritdoc |
||
70 | */ |
||
71 | public function set_data() |
||
81 | |||
82 | /** |
||
83 | * Remove specified BBCodes and their contents |
||
84 | * |
||
85 | * @return string Stripped message text |
||
86 | */ |
||
87 | protected function process() |
||
96 | |||
97 | /** |
||
98 | * Is the message s9e formatted |
||
99 | * |
||
100 | * @return bool True if message is s9e formatted, false otherwise |
||
101 | */ |
||
102 | protected function s9e_format() |
||
106 | } |
||
107 |