MediaWiki  master
MediaWiki\Maintenance\UndoLog Class Reference

Update a database while optionally writing SQL that reverses the update to a file. More...

Public Member Functions

 __construct ( $fileName, IDatabase $dbw)
 
 update ( $table, array $newValues, array $oldValues, $fname)
 

Detailed Description

Update a database while optionally writing SQL that reverses the update to a file.

Definition at line 11 of file UndoLog.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Maintenance\UndoLog::__construct (   $fileName,
IDatabase  $dbw 
)
Parameters
string | null$fileName
IDatabase$dbw

Definition at line 19 of file UndoLog.php.

Member Function Documentation

◆ update()

MediaWiki\Maintenance\UndoLog::update (   $table,
array  $newValues,
array  $oldValues,
  $fname 
)
Parameters
string$table
array$newValues
array$oldValues
string$fname
Returns
bool

Definition at line 36 of file UndoLog.php.

References LIST_AND, and LIST_SET.


The documentation for this class was generated from the following file: