aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2013-07-06 12:58:52 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2013-07-06 12:58:52 -0500
commitbdaa40bb550c18f9c7feb4e2448a31a53e2a5bd2 (patch)
treebe082324a2961f129d40ddad7e99552077dd732a /phpBB/includes/db
parentcb13747c4bdff5fb8ab034909474f276eff212ee (diff)
downloadforums-bdaa40bb550c18f9c7feb4e2448a31a53e2a5bd2.tar
forums-bdaa40bb550c18f9c7feb4e2448a31a53e2a5bd2.tar.gz
forums-bdaa40bb550c18f9c7feb4e2448a31a53e2a5bd2.tar.bz2
forums-bdaa40bb550c18f9c7feb4e2448a31a53e2a5bd2.tar.xz
forums-bdaa40bb550c18f9c7feb4e2448a31a53e2a5bd2.zip
[ticket/11420] Fix comments, license link
PHPBB3-11420
Diffstat (limited to 'phpBB/includes/db')
-rw-r--r--phpBB/includes/db/migration/data/310/notification_options_reconvert.php18
1 files changed, 15 insertions, 3 deletions
diff --git a/phpBB/includes/db/migration/data/310/notification_options_reconvert.php b/phpBB/includes/db/migration/data/310/notification_options_reconvert.php
index 9f2d4b2d75..d994d7ec5f 100644
--- a/phpBB/includes/db/migration/data/310/notification_options_reconvert.php
+++ b/phpBB/includes/db/migration/data/310/notification_options_reconvert.php
@@ -3,7 +3,7 @@
*
* @package migration
* @copyright (c) 2013 phpBB Group
-* @license http://opensource.org/licenses/gpl-license.php GNU Public License v2
+* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
@@ -31,8 +31,11 @@ class phpbb_db_migration_data_310_notification_options_reconvert extends phpbb_d
/**
* Perform the conversion (separate for testability)
+ *
+ * @param phpbb_db_sql_insert_buffer $insert_buffer
+ * @param string $insert_table
*/
- public function perform_conversion($insert_buffer, $insert_table)
+ public function perform_conversion(phpbb_db_sql_insert_buffer $insert_buffer, $insert_table)
{
$sql = 'DELETE FROM ' . $insert_table;
$this->db->sql_query($sql);
@@ -58,7 +61,7 @@ class phpbb_db_migration_data_310_notification_options_reconvert extends phpbb_d
$notification_methods[] = 'jabber';
}
- // Notifications for posts
+ // Notifications for posts
foreach (array('post', 'topic') as $item_type)
{
$this->add_method_rows(
@@ -88,6 +91,15 @@ class phpbb_db_migration_data_310_notification_options_reconvert extends phpbb_d
$insert_buffer->flush();
}
+ /**
+ * Insert method rows to DB
+ *
+ * @param phpbb_db_sql_insert_buffer $insert_buffer
+ * @param string $item_type
+ * @param int $item_id
+ * @param int $user_id
+ * @param string $methods
+ */
protected function add_method_rows(phpbb_db_sql_insert_buffer $insert_buffer, $item_type, $item_id, $user_id, array $methods)
{
$row_base = array(