Completed
Push — develop-3.2.x ( 477e50...b33cd9 )
by Matt
9s
created

v310_m6_update_bbcodes::update_data()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 6
rs 9.4285
1
<?php
2
/**
3
*
4
* Advanced BBCode Box
5
*
6
* @copyright (c) 2015 Matt Friedman
7
* @license GNU General Public License, version 2 (GPL-2.0)
8
*
9
*/
10
11
namespace vse\abbc3\migrations;
12
13
class v310_m6_update_bbcodes extends \vse\abbc3\core\bbcodes_migration_base
14
{
15
	/**
16
	 * {@inheritdoc}
17
	 */
18
	static public function depends_on()
19
	{
20
		return array('\vse\abbc3\migrations\v310_m5_update_bbcodes');
21
	}
22
23
	/**
24
	 * {@inheritdoc}
25
	 */
26
	public function update_data()
27
	{
28
		return array(
29
			array('custom', array(array($this, 'install_abbc3_bbcodes'))),
30
		);
31
	}
32
33
	/**
34
	 * {@inheritdoc}
35
	 */
36
	protected function bbcode_data()
37
	{
38
		return array(
39
			'soundcloud' => array(
40
				'bbcode_helpline'	=> 'ABBC3_SOUNDCLOUD_HELPLINE',
41
				'bbcode_match'		=> '[soundcloud]{URL}[/soundcloud]',
42
				'bbcode_tpl'		=> '<iframe width="100%" height="166" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url={URL}&amp;color=ff5500&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false"></iframe>',
43
			),
44
		);
45
	}
46
}
47