@@ -42,8 +42,8 @@ discard block |
||
| 42 | 42 | protected $controller_helper; |
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | - * {@inheritdoc} |
|
| 46 | - */ |
|
| 45 | + * {@inheritdoc} |
|
| 46 | + */ |
|
| 47 | 47 | public static function getSubscribedEvents() |
| 48 | 48 | { |
| 49 | 49 | return array( |
@@ -54,16 +54,16 @@ discard block |
||
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | - * Constructor |
|
| 58 | - * |
|
| 59 | - * @param \phpbb\template\template $template Template object |
|
| 60 | - * @param \phpbb\user $user User object |
|
| 61 | - * @param \phpbb\config\db_text $config_text Config text object |
|
| 62 | - * @param \phpbb\config\config $config Config object |
|
| 63 | - * @param \phpbb\ads\ad\manager $manager Advertisement manager object |
|
| 64 | - * @param \phpbb\ads\location\manager $location_manager Template location manager object |
|
| 65 | - * @param \phpbb\controller\helper $controller_helper Controller helper object |
|
| 66 | - */ |
|
| 57 | + * Constructor |
|
| 58 | + * |
|
| 59 | + * @param \phpbb\template\template $template Template object |
|
| 60 | + * @param \phpbb\user $user User object |
|
| 61 | + * @param \phpbb\config\db_text $config_text Config text object |
|
| 62 | + * @param \phpbb\config\config $config Config object |
|
| 63 | + * @param \phpbb\ads\ad\manager $manager Advertisement manager object |
|
| 64 | + * @param \phpbb\ads\location\manager $location_manager Template location manager object |
|
| 65 | + * @param \phpbb\controller\helper $controller_helper Controller helper object |
|
| 66 | + */ |
|
| 67 | 67 | public function __construct(\phpbb\template\template $template, \phpbb\user $user, \phpbb\config\db_text $config_text, \phpbb\config\config $config, \phpbb\ads\ad\manager $manager, \phpbb\ads\location\manager $location_manager, \phpbb\controller\helper $controller_helper) |
| 68 | 68 | { |
| 69 | 69 | $this->template = $template; |
@@ -76,11 +76,11 @@ discard block |
||
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | /** |
| 79 | - * Load common language file during user setup |
|
| 80 | - * |
|
| 81 | - * @param \phpbb\event\data $event The event object |
|
| 82 | - * @return void |
|
| 83 | - */ |
|
| 79 | + * Load common language file during user setup |
|
| 80 | + * |
|
| 81 | + * @param \phpbb\event\data $event The event object |
|
| 82 | + * @return void |
|
| 83 | + */ |
|
| 84 | 84 | public function load_language_on_setup($event) |
| 85 | 85 | { |
| 86 | 86 | $lang_set_ext = $event['lang_set_ext']; |
@@ -13,26 +13,26 @@ |
||
| 13 | 13 | class m7_adblocker extends \phpbb\db\migration\migration |
| 14 | 14 | { |
| 15 | 15 | /** |
| 16 | - * {@inheritDoc} |
|
| 17 | - */ |
|
| 16 | + * {@inheritDoc} |
|
| 17 | + */ |
|
| 18 | 18 | public function effectively_installed() |
| 19 | 19 | { |
| 20 | 20 | return $this->config->offsetExists('phpbb_ads_adblocker_message'); |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | - * {@inheritDoc} |
|
| 25 | - */ |
|
| 24 | + * {@inheritDoc} |
|
| 25 | + */ |
|
| 26 | 26 | public static function depends_on() |
| 27 | 27 | { |
| 28 | 28 | return array('\phpbb\ads\migrations\v10x\m1_initial_schema'); |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | - * Add phpbb_ads_adblocker_message config |
|
| 33 | - * |
|
| 34 | - * @return array Array of data update instructions |
|
| 35 | - */ |
|
| 32 | + * Add phpbb_ads_adblocker_message config |
|
| 33 | + * |
|
| 34 | + * @return array Array of data update instructions |
|
| 35 | + */ |
|
| 36 | 36 | public function update_data() |
| 37 | 37 | { |
| 38 | 38 | return array( |
@@ -13,27 +13,27 @@ discard block |
||
| 13 | 13 | class m8_priority extends \phpbb\db\migration\migration |
| 14 | 14 | { |
| 15 | 15 | /** |
| 16 | - * {@inheritDoc} |
|
| 17 | - */ |
|
| 16 | + * {@inheritDoc} |
|
| 17 | + */ |
|
| 18 | 18 | public function effectively_installed() |
| 19 | 19 | { |
| 20 | 20 | return $this->db_tools->sql_column_exists($this->table_prefix . 'ads', 'ad_priority'); |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | - * {@inheritDoc} |
|
| 25 | - */ |
|
| 24 | + * {@inheritDoc} |
|
| 25 | + */ |
|
| 26 | 26 | public static function depends_on() |
| 27 | 27 | { |
| 28 | 28 | return array('\phpbb\ads\migrations\v10x\m1_initial_schema'); |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | - * Add the priority to ads table |
|
| 33 | - * |
|
| 34 | - * @return array Array of table schema |
|
| 35 | - * @access public |
|
| 36 | - */ |
|
| 32 | + * Add the priority to ads table |
|
| 33 | + * |
|
| 34 | + * @return array Array of table schema |
|
| 35 | + * @access public |
|
| 36 | + */ |
|
| 37 | 37 | public function update_schema() |
| 38 | 38 | { |
| 39 | 39 | return array( |
@@ -46,11 +46,11 @@ discard block |
||
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | - * Drop the priority from ads table |
|
| 50 | - * |
|
| 51 | - * @return array Array of table schema |
|
| 52 | - * @access public |
|
| 53 | - */ |
|
| 49 | + * Drop the priority from ads table |
|
| 50 | + * |
|
| 51 | + * @return array Array of table schema |
|
| 52 | + * @access public |
|
| 53 | + */ |
|
| 54 | 54 | public function revert_schema() |
| 55 | 55 | { |
| 56 | 56 | return array( |
@@ -13,8 +13,8 @@ discard block |
||
| 13 | 13 | class m2_acp_module extends \phpbb\db\migration\migration |
| 14 | 14 | { |
| 15 | 15 | /** |
| 16 | - * {@inheritDoc} |
|
| 17 | - */ |
|
| 16 | + * {@inheritDoc} |
|
| 17 | + */ |
|
| 18 | 18 | public function effectively_installed() |
| 19 | 19 | { |
| 20 | 20 | $sql = 'SELECT module_id |
@@ -29,18 +29,18 @@ discard block |
||
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | - * {@inheritDoc} |
|
| 33 | - */ |
|
| 32 | + * {@inheritDoc} |
|
| 33 | + */ |
|
| 34 | 34 | public static function depends_on() |
| 35 | 35 | { |
| 36 | 36 | return array('\phpbb\ads\migrations\v10x\m1_initial_schema'); |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | - * Add the ACP module |
|
| 41 | - * |
|
| 42 | - * @return array Array of data update instructions |
|
| 43 | - */ |
|
| 40 | + * Add the ACP module |
|
| 41 | + * |
|
| 42 | + * @return array Array of data update instructions |
|
| 43 | + */ |
|
| 44 | 44 | public function update_data() |
| 45 | 45 | { |
| 46 | 46 | return array( |
@@ -13,16 +13,16 @@ discard block |
||
| 13 | 13 | class m4_indexes extends \phpbb\db\migration\migration |
| 14 | 14 | { |
| 15 | 15 | /** |
| 16 | - * {@inheritDoc} |
|
| 17 | - */ |
|
| 16 | + * {@inheritDoc} |
|
| 17 | + */ |
|
| 18 | 18 | public function effectively_installed() |
| 19 | 19 | { |
| 20 | 20 | return $this->db_tools->sql_index_exists($this->table_prefix . 'ads', 'ad_enabled'); |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | - * {@inheritDoc} |
|
| 25 | - */ |
|
| 24 | + * {@inheritDoc} |
|
| 25 | + */ |
|
| 26 | 26 | public static function depends_on() |
| 27 | 27 | { |
| 28 | 28 | return array( |
@@ -32,11 +32,11 @@ discard block |
||
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | - * Add the indexes |
|
| 36 | - * |
|
| 37 | - * @return array Array of altered table schema |
|
| 38 | - * @access public |
|
| 39 | - */ |
|
| 35 | + * Add the indexes |
|
| 36 | + * |
|
| 37 | + * @return array Array of altered table schema |
|
| 38 | + * @access public |
|
| 39 | + */ |
|
| 40 | 40 | public function update_schema() |
| 41 | 41 | { |
| 42 | 42 | return array( |
@@ -52,11 +52,11 @@ discard block |
||
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | - * Drop the indexes |
|
| 56 | - * |
|
| 57 | - * @return array Array of altered table schema |
|
| 58 | - * @access public |
|
| 59 | - */ |
|
| 55 | + * Drop the indexes |
|
| 56 | + * |
|
| 57 | + * @return array Array of altered table schema |
|
| 58 | + * @access public |
|
| 59 | + */ |
|
| 60 | 60 | public function revert_schema() |
| 61 | 61 | { |
| 62 | 62 | return array( |
@@ -13,8 +13,8 @@ discard block |
||
| 13 | 13 | class m6_hide_for_group extends \phpbb\db\migration\container_aware_migration |
| 14 | 14 | { |
| 15 | 15 | /** |
| 16 | - * {@inheritDoc} |
|
| 17 | - */ |
|
| 16 | + * {@inheritDoc} |
|
| 17 | + */ |
|
| 18 | 18 | public function effectively_installed() |
| 19 | 19 | { |
| 20 | 20 | $config_text = $this->container->get('config_text'); |
@@ -23,18 +23,18 @@ discard block |
||
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | - * {@inheritDoc} |
|
| 27 | - */ |
|
| 26 | + * {@inheritDoc} |
|
| 27 | + */ |
|
| 28 | 28 | public static function depends_on() |
| 29 | 29 | { |
| 30 | 30 | return array('\phpbb\ads\migrations\v10x\m2_acp_module'); |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | - * Add the ACP settings module |
|
| 35 | - * |
|
| 36 | - * @return array Array of data update instructions |
|
| 37 | - */ |
|
| 34 | + * Add the ACP settings module |
|
| 35 | + * |
|
| 36 | + * @return array Array of data update instructions |
|
| 37 | + */ |
|
| 38 | 38 | public function update_data() |
| 39 | 39 | { |
| 40 | 40 | return array( |
@@ -13,27 +13,27 @@ discard block |
||
| 13 | 13 | class m9_views_clicks extends \phpbb\db\migration\migration |
| 14 | 14 | { |
| 15 | 15 | /** |
| 16 | - * {@inheritDoc} |
|
| 17 | - */ |
|
| 16 | + * {@inheritDoc} |
|
| 17 | + */ |
|
| 18 | 18 | public function effectively_installed() |
| 19 | 19 | { |
| 20 | 20 | return $this->db_tools->sql_column_exists($this->table_prefix . 'ads', 'ad_views'); |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | - * {@inheritDoc} |
|
| 25 | - */ |
|
| 24 | + * {@inheritDoc} |
|
| 25 | + */ |
|
| 26 | 26 | public static function depends_on() |
| 27 | 27 | { |
| 28 | 28 | return array('\phpbb\ads\migrations\v10x\m1_initial_schema'); |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | - * Add the views and clicks to ads table |
|
| 33 | - * |
|
| 34 | - * @return array Array of table schema |
|
| 35 | - * @access public |
|
| 36 | - */ |
|
| 32 | + * Add the views and clicks to ads table |
|
| 33 | + * |
|
| 34 | + * @return array Array of table schema |
|
| 35 | + * @access public |
|
| 36 | + */ |
|
| 37 | 37 | public function update_schema() |
| 38 | 38 | { |
| 39 | 39 | return array( |
@@ -49,11 +49,11 @@ discard block |
||
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | - * Drop the views and clicks from ads table |
|
| 53 | - * |
|
| 54 | - * @return array Array of table schema |
|
| 55 | - * @access public |
|
| 56 | - */ |
|
| 52 | + * Drop the views and clicks from ads table |
|
| 53 | + * |
|
| 54 | + * @return array Array of table schema |
|
| 55 | + * @access public |
|
| 56 | + */ |
|
| 57 | 57 | public function revert_schema() |
| 58 | 58 | { |
| 59 | 59 | return array( |
@@ -13,27 +13,27 @@ discard block |
||
| 13 | 13 | class m5_end_date extends \phpbb\db\migration\migration |
| 14 | 14 | { |
| 15 | 15 | /** |
| 16 | - * {@inheritDoc} |
|
| 17 | - */ |
|
| 16 | + * {@inheritDoc} |
|
| 17 | + */ |
|
| 18 | 18 | public function effectively_installed() |
| 19 | 19 | { |
| 20 | 20 | return $this->db_tools->sql_column_exists($this->table_prefix . 'ads', 'ad_end_date'); |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | - * {@inheritDoc} |
|
| 25 | - */ |
|
| 24 | + * {@inheritDoc} |
|
| 25 | + */ |
|
| 26 | 26 | public static function depends_on() |
| 27 | 27 | { |
| 28 | 28 | return array('\phpbb\ads\migrations\v10x\m1_initial_schema'); |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | - * Add the end date to ads table |
|
| 33 | - * |
|
| 34 | - * @return array Array of table schema |
|
| 35 | - * @access public |
|
| 36 | - */ |
|
| 32 | + * Add the end date to ads table |
|
| 33 | + * |
|
| 34 | + * @return array Array of table schema |
|
| 35 | + * @access public |
|
| 36 | + */ |
|
| 37 | 37 | public function update_schema() |
| 38 | 38 | { |
| 39 | 39 | return array( |
@@ -46,11 +46,11 @@ discard block |
||
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | - * Drop the end date from ads table |
|
| 50 | - * |
|
| 51 | - * @return array Array of table schema |
|
| 52 | - * @access public |
|
| 53 | - */ |
|
| 49 | + * Drop the end date from ads table |
|
| 50 | + * |
|
| 51 | + * @return array Array of table schema |
|
| 52 | + * @access public |
|
| 53 | + */ |
|
| 54 | 54 | public function revert_schema() |
| 55 | 55 | { |
| 56 | 56 | return array( |
@@ -13,30 +13,30 @@ discard block |
||
| 13 | 13 | class m3_template_locations_schema extends \phpbb\db\migration\migration |
| 14 | 14 | { |
| 15 | 15 | /** |
| 16 | - * {@inheritDoc} |
|
| 17 | - */ |
|
| 16 | + * {@inheritDoc} |
|
| 17 | + */ |
|
| 18 | 18 | public function effectively_installed() |
| 19 | 19 | { |
| 20 | 20 | return $this->db_tools->sql_table_exists($this->table_prefix . 'ad_locations'); |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | - * {@inheritDoc} |
|
| 25 | - */ |
|
| 24 | + * {@inheritDoc} |
|
| 25 | + */ |
|
| 26 | 26 | public static function depends_on() |
| 27 | 27 | { |
| 28 | 28 | return array('\phpbb\ads\migrations\v10x\m1_initial_schema'); |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | - * Add the ad_locations table schema to the database: |
|
| 33 | - * ad_locations: |
|
| 34 | - * ad_id |
|
| 35 | - * location_id |
|
| 36 | - * |
|
| 37 | - * @return array Array of table schema |
|
| 38 | - * @access public |
|
| 39 | - */ |
|
| 32 | + * Add the ad_locations table schema to the database: |
|
| 33 | + * ad_locations: |
|
| 34 | + * ad_id |
|
| 35 | + * location_id |
|
| 36 | + * |
|
| 37 | + * @return array Array of table schema |
|
| 38 | + * @access public |
|
| 39 | + */ |
|
| 40 | 40 | public function update_schema() |
| 41 | 41 | { |
| 42 | 42 | return array( |
@@ -53,11 +53,11 @@ discard block |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | - * Drop the ad_locations table schema from the database |
|
| 57 | - * |
|
| 58 | - * @return array Array of table schema |
|
| 59 | - * @access public |
|
| 60 | - */ |
|
| 56 | + * Drop the ad_locations table schema from the database |
|
| 57 | + * |
|
| 58 | + * @return array Array of table schema |
|
| 59 | + * @access public |
|
| 60 | + */ |
|
| 61 | 61 | public function revert_schema() |
| 62 | 62 | { |
| 63 | 63 | return array( |