[feature/module_services] Pass phpBB dbal driver to module uninstall method
This commit is contained in:
@@ -118,10 +118,8 @@ class donation extends module_base
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function uninstall($module_id)
|
||||
public function uninstall($module_id, $db)
|
||||
{
|
||||
global $db;
|
||||
|
||||
$del_config = array(
|
||||
'board3_pay_acc_' . $module_id,
|
||||
'board3_pay_custom_' . $module_id,
|
||||
|
||||
@@ -81,7 +81,7 @@ class module_base implements module_interface
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function uninstall($module_id)
|
||||
public function uninstall($module_id, $db)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -93,8 +93,9 @@ interface module_interface
|
||||
* Executes any additional commands for uninstalling the module
|
||||
*
|
||||
* @param int $module_id Module's ID
|
||||
* @param \phpbb\db\driver $db phpBB dbal driver
|
||||
*
|
||||
* @return bool True if uninstall was successful, false if not
|
||||
*/
|
||||
public function uninstall($module_id);
|
||||
public function uninstall($module_id, $db);
|
||||
}
|
||||
|
||||
@@ -413,10 +413,8 @@ class portal_announcements_module extends \board3\portal\modules\module_base
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall($module_id)
|
||||
public function uninstall($module_id, $db)
|
||||
{
|
||||
global $db;
|
||||
|
||||
$del_config = array(
|
||||
'board3_announcements_style_' . $module_id,
|
||||
'board3_number_of_announcements_' . $module_id,
|
||||
|
||||
@@ -87,10 +87,8 @@ class portal_attachments_module extends \board3\portal\modules\module_base
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall($module_id)
|
||||
public function uninstall($module_id, $db)
|
||||
{
|
||||
global $db;
|
||||
|
||||
$del_config = array(
|
||||
'board3_attachments_number_' . $module_id,
|
||||
'board3_attach_max_length_' . $module_id,
|
||||
|
||||
@@ -146,10 +146,8 @@ class portal_birthday_list_module extends \board3\portal\modules\module_base
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall($module_id)
|
||||
public function uninstall($module_id, $db)
|
||||
{
|
||||
global $db;
|
||||
|
||||
$del_config = array(
|
||||
'board3_birthdays_ahead_' . $module_id,
|
||||
);
|
||||
|
||||
@@ -297,10 +297,8 @@ class portal_calendar_module extends \board3\portal\modules\module_base
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall($module_id)
|
||||
public function uninstall($module_id, $db)
|
||||
{
|
||||
global $db;
|
||||
|
||||
$del_config = array(
|
||||
'board3_calendar_events_' . $module_id,
|
||||
);
|
||||
|
||||
@@ -90,10 +90,8 @@ class portal_custom_module extends \board3\portal\modules\module_base
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall($module_id)
|
||||
public function uninstall($module_id, $db)
|
||||
{
|
||||
global $db;
|
||||
|
||||
$del_config = array(
|
||||
'board3_custom_' . $module_id . '_code',
|
||||
);
|
||||
|
||||
@@ -102,10 +102,8 @@ class portal_modulename_module extends \board3\portal\modules\module_base
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall($module_id)
|
||||
public function uninstall($module_id, $db)
|
||||
{
|
||||
global $db;
|
||||
|
||||
$del_config = array(
|
||||
'board3_configname_' . $module_id,
|
||||
'board3_configname2_' . $module_id,
|
||||
|
||||
@@ -87,7 +87,7 @@ class portal_forumlist_module extends \board3\portal\modules\module_base
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall($module_id)
|
||||
public function uninstall($module_id, $db)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -122,10 +122,8 @@ class portal_friends_module extends \board3\portal\modules\module_base
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall($module_id)
|
||||
public function uninstall($module_id, $db)
|
||||
{
|
||||
global $db;
|
||||
|
||||
$del_config = array(
|
||||
'board3_max_online_friends_' . $module_id,
|
||||
);
|
||||
|
||||
@@ -103,10 +103,8 @@ class portal_latest_bots_module extends \board3\portal\modules\module_base
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall($module_id)
|
||||
public function uninstall($module_id, $db)
|
||||
{
|
||||
global $db;
|
||||
|
||||
$del_config = array(
|
||||
'board3_last_visited_bots_number_' . $module_id,
|
||||
);
|
||||
|
||||
@@ -90,10 +90,8 @@ class portal_latest_members_module extends \board3\portal\modules\module_base
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall($module_id)
|
||||
public function uninstall($module_id, $db)
|
||||
{
|
||||
global $db;
|
||||
|
||||
$del_config = array(
|
||||
'board3_max_last_member_' . $module_id,
|
||||
);
|
||||
|
||||
@@ -226,10 +226,8 @@ class portal_leaders_module extends \board3\portal\modules\module_base
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall($module_id)
|
||||
public function uninstall($module_id, $db)
|
||||
{
|
||||
global $db;
|
||||
|
||||
$del_config = array(
|
||||
'board3_leaders_ext_' . $module_id,
|
||||
);
|
||||
|
||||
@@ -79,7 +79,7 @@ class portal_link_us_module extends \board3\portal\modules\module_base
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall($module_id)
|
||||
public function uninstall($module_id, $db)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -160,10 +160,8 @@ class portal_links_module extends \board3\portal\modules\module_base
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall($module_id)
|
||||
public function uninstall($module_id, $db)
|
||||
{
|
||||
global $db;
|
||||
|
||||
$del_config = array(
|
||||
'board3_links_array_' . $module_id,
|
||||
);
|
||||
|
||||
@@ -216,10 +216,8 @@ class portal_main_menu_module extends \board3\portal\modules\module_base
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall($module_id)
|
||||
public function uninstall($module_id, $db)
|
||||
{
|
||||
global $db;
|
||||
|
||||
$del_config = array(
|
||||
'board3_menu_array_' . $module_id,
|
||||
);
|
||||
|
||||
@@ -394,10 +394,8 @@ class portal_news_module extends \board3\portal\modules\module_base
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall($module_id)
|
||||
public function uninstall($module_id, $db)
|
||||
{
|
||||
global $db;
|
||||
|
||||
$del_config = array(
|
||||
'board3_news_length_' . $module_id,
|
||||
'board3_news_forum_' . $module_id,
|
||||
|
||||
@@ -91,10 +91,8 @@ class portal_poll_module extends \board3\portal\modules\module_base
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall($module_id)
|
||||
public function uninstall($module_id, $db)
|
||||
{
|
||||
global $db;
|
||||
|
||||
$del_config = array(
|
||||
'board3_poll_allow_vote_' . $module_id,
|
||||
'board3_poll_topic_id_' . $module_id,
|
||||
|
||||
@@ -135,7 +135,7 @@ class portal_random_member_module extends \board3\portal\modules\module_base
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall($module_id)
|
||||
public function uninstall($module_id, $db)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -196,10 +196,8 @@ class portal_recent_module extends \board3\portal\modules\module_base
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall($module_id)
|
||||
public function uninstall($module_id, $db)
|
||||
{
|
||||
global $db;
|
||||
|
||||
$del_config = array(
|
||||
'board3_max_topics_' . $module_id,
|
||||
'board3_recent_title_limit_' . $module_id,
|
||||
|
||||
@@ -78,7 +78,7 @@ class portal_search_module extends \board3\portal\modules\module_base
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall($module_id)
|
||||
public function uninstall($module_id, $db)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -153,7 +153,7 @@ class portal_statistics_module extends \board3\portal\modules\module_base
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall($module_id)
|
||||
public function uninstall($module_id, $db)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -98,10 +98,8 @@ class portal_topposters_module extends \board3\portal\modules\module_base
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall($module_id)
|
||||
public function uninstall($module_id, $db)
|
||||
{
|
||||
global $db;
|
||||
|
||||
$del_config = array(
|
||||
'board3_topposters_' . $module_id,
|
||||
);
|
||||
|
||||
@@ -167,10 +167,8 @@ class portal_user_menu_module extends \board3\portal\modules\module_base
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall($module_id)
|
||||
public function uninstall($module_id, $db)
|
||||
{
|
||||
global $db;
|
||||
|
||||
$del_config = array(
|
||||
'board3_user_menu_register_' . $module_id,
|
||||
);
|
||||
|
||||
@@ -93,10 +93,8 @@ class portal_welcome_module extends \board3\portal\modules\module_base
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall($module_id)
|
||||
public function uninstall($module_id, $db)
|
||||
{
|
||||
global $db;
|
||||
|
||||
$del_config = array(
|
||||
'board3_welcome_message_' . $module_id,
|
||||
);
|
||||
|
||||
@@ -130,7 +130,7 @@ class portal_whois_online_module extends \board3\portal\modules\module_base
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall($module_id)
|
||||
public function uninstall($module_id, $db)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user