Go to the source code of this file.
Functions | |
reassignEdits (&$from, &$to, $rc=false, $report=false) | |
Reassign edits from one user to another. | |
userConditions (&$user, $idfield, $utfield) | |
Return the most efficient set of user conditions i.e. | |
userSpecification (&$user, $idfield, $utfield) | |
Return user specifications i.e. | |
out ($output) | |
Echo output if $wgSilent is off. | |
silent ($silent=true) | |
Mutator for $wgSilent. | |
initialiseUser ($username) | |
Initialise the user object. |
Definition in file reassignEdits.inc.php.
initialiseUser | ( | $ | username | ) |
Initialise the user object.
$username | Username or IP address |
Definition at line 132 of file reassignEdits.inc.php.
References $user, $username, User::isIP(), and User::newFromName().
out | ( | $ | output | ) |
Echo output if $wgSilent is off.
$output | Output to echo |
Definition at line 106 of file reassignEdits.inc.php.
References $output.
Referenced by PPDPart::__construct(), LogEventsList::__construct(), Preprocessor_Hash::preprocessToObj(), reassignEdits(), LogEventsList::showHeader(), and LogEventsList::showOptions().
reassignEdits | ( | &$ | from, | |
&$ | to, | |||
$ | rc = false , |
|||
$ | report = false | |||
) |
Reassign edits from one user to another.
$from | User to take edits from | |
$to | User to assign edits to | |
$rc | Update the recent changes table | |
$report | Don't change things; just echo numbers |
Definition at line 21 of file reassignEdits.inc.php.
References $dbw, $del, $fname, $report, $res, $row, $total, out(), userConditions(), userSpecification(), and wfGetDB().
silent | ( | $ | silent = true |
) |
Mutator for $wgSilent.
$silent | Switch on $wgSilent |
Definition at line 121 of file reassignEdits.inc.php.
userConditions | ( | &$ | user, | |
$ | idfield, | |||
$ | utfield | |||
) |
Return the most efficient set of user conditions i.e.
a user => id mapping, or a user_text => text mapping
$user | User for the condition | |
$idfield | Field name containing the identifier | |
$utfield | Field name containing the user text |
Definition at line 83 of file reassignEdits.inc.php.
References $user.
Referenced by reassignEdits().
userSpecification | ( | &$ | user, | |
$ | idfield, | |||
$ | utfield | |||
) |
Return user specifications i.e.
user => id, user_text => text
$user | User for the spec | |
$idfield | Field name containing the identifier | |
$utfield | Field name containing the user text |
Definition at line 96 of file reassignEdits.inc.php.
References $user.
Referenced by reassignEdits().