| 1 | <?php  | 
            ||
| 15 | class 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 Config object  | 
            ||
| 27 | */  | 
            ||
| 28 | 25 | public function __construct(config $config)  | 
            |
| 32 | |||
| 33 | /**  | 
            ||
| 34 | * @inheritdoc  | 
            ||
| 35 | */  | 
            ||
| 36 | 16 | public function run()  | 
            |
| 40 | |||
| 41 | /**  | 
            ||
| 42 | * @inheritdoc  | 
            ||
| 43 | */  | 
            ||
| 44 | 16 | public function set_data()  | 
            |
| 54 | |||
| 55 | /**  | 
            ||
| 56 | * Remove specified BBCodes and their contents  | 
            ||
| 57 | * Uses recursion to handle nested BBCodes  | 
            ||
| 58 | *  | 
            ||
| 59 | * @return string Stripped message text  | 
            ||
| 60 | */  | 
            ||
| 61 | 16 | protected function process()  | 
            |
| 71 | }  | 
            ||
| 72 |