Total Complexity | 3 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class v323_m12_table_bbcode extends bbcodes_migration_base |
||
14 | { |
||
15 | /** |
||
16 | * {@inheritdoc} |
||
17 | */ |
||
18 | public static function depends_on() |
||
19 | { |
||
20 | return array( |
||
21 | '\vse\abbc3\migrations\v310_m4_install_data', |
||
22 | '\vse\abbc3\migrations\v322_m11_reparse', |
||
23 | ); |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | public function update_data() |
||
30 | { |
||
31 | return array( |
||
32 | array('custom', array(array($this, 'install_abbc3_bbcodes'))), |
||
33 | ); |
||
34 | } |
||
35 | |||
36 | public function revert_data() |
||
40 | ); |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | protected static $bbcode_data = array( |
||
47 | 'pipes' => array( |
||
48 | 'bbcode_helpline' => 'ABBC3_PIPE_TABLES', |
||
49 | 'bbcode_match' => '[pipes]{TEXT}[/pipes]', |
||
50 | 'bbcode_tpl' => '{TEXT}', |
||
51 | 'bbcode_order' => 999, |
||
52 | ), |
||
55 |