maintenance/reassignEdits.inc.php File Reference

Support functions for the reassignEdits script. More...

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.


Detailed Description

Support functions for the reassignEdits script.

Author:
Rob Church <robchur@gmail.com> GNU General Public Licence 2.0 or later

Definition in file reassignEdits.inc.php.


Function Documentation

initialiseUser ( username  ) 

Initialise the user object.

Parameters:
$username Username or IP address
Returns:
User

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.

Parameters:
$output Output to echo
Returns:
bool True if the output was echoed

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.

Parameters:
$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
Returns:
integer Number of entries changed, or that would be changed

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.

Parameters:
$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

Parameters:
$user User for the condition
$idfield Field name containing the identifier
$utfield Field name containing the user text
Returns:
array

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

Parameters:
$user User for the spec
$idfield Field name containing the identifier
$utfield Field name containing the user text
Returns:
array

Definition at line 96 of file reassignEdits.inc.php.

References $user.

Referenced by reassignEdits().


Generated on Sat Sep 5 02:08:27 2009 for MediaWiki by  doxygen 1.5.9