1 | <?php |
||
15 | class remove_bbcodes_legacy extends base |
||
16 | { |
||
17 | /** @var config */ |
||
18 | protected $config; |
||
19 | |||
20 | /** @var string Regex data of BBCodes to remove */ |
||
21 | protected $data; |
||
22 | |||
23 | /** |
||
24 | * Constructor |
||
25 | * |
||
26 | * @param config $config |
||
27 | * @access public |
||
28 | */ |
||
29 | public function __construct(config $config) |
||
33 | |||
34 | /** |
||
35 | * @inheritdoc |
||
36 | */ |
||
37 | public function run() |
||
41 | |||
42 | /** |
||
43 | * @inheritdoc |
||
44 | */ |
||
45 | public function set_data() |
||
55 | |||
56 | /** |
||
57 | * Remove specified BBCodes and their contents |
||
58 | * Uses recursion to handle nested BBCodes |
||
59 | * |
||
60 | * @return string Stripped message text |
||
61 | * @access protected |
||
62 | */ |
||
63 | protected function process() |
||
73 | } |
||
74 |