[ Index ]

PHP Cross Reference of phpBB-3.1.12-deutsch

title

Body

[close]

/includes/ -> functions_database_helper.php (summary)

This file is part of the phpBB Forum Software package.

Copyright: (c) phpBB Limited
License: GNU General Public License, version 2 (GPL-2.0)
File Size: 210 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 functions

  phpbb_update_rows_avoiding_duplicates()
  phpbb_update_rows_avoiding_duplicates_notify_status()

Functions
Functions that are not part of a class:

phpbb_update_rows_avoiding_duplicates(\phpbb\db\driver\driver_interface $db, $table, $column, $from_values, $to_value)   X-Ref
Updates rows in given table from a set of values to a new value.
If this results in rows violating uniqueness constraints, the duplicate
rows are eliminated.

The only supported table is bookmarks.

param: \phpbb\db\driver\driver_interface $db Database object
param: string $table Table on which to perform the update
param: string $column Column whose values to change
param: array $from_values An array of values that should be changed
param: int $to_value The new value
return: null

phpbb_update_rows_avoiding_duplicates_notify_status(\phpbb\db\driver\driver_interface $db, $table, $column, $from_values, $to_value)   X-Ref
Updates rows in given table from a set of values to a new value.
If this results in rows violating uniqueness constraints, the duplicate
rows are merged respecting notify_status (0 takes precedence over 1).

The only supported table is topics_watch.

param: \phpbb\db\driver\driver_interface $db Database object
param: string $table Table on which to perform the update
param: string $column Column whose values to change
param: array $from_values An array of values that should be changed
param: int $to_value The new value
return: null



Generated: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1