[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/maintenance/ -> reassignEdits.php (summary)

Reassign edits from a user or IP address to another user This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Author: Rob Church <[email protected]>
File Size: 199 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 maintenance/Maintenance.php

Defines 1 class

ReassignEdits:: (6 methods):
  __construct()
  execute()
  doReassignEdits()
  userConditions()
  userSpecification()
  initialiseUser()


Class: ReassignEdits  - X-Ref

Maintenance script that reassigns edits from a user or IP address
to another user.

__construct()   X-Ref
No description

execute()   X-Ref
No description

doReassignEdits( &$from, &$to, $rc = false, $report = false )   X-Ref
Reassign edits from one user to another

param: User $from User to take edits from
param: User $to User to assign edits to
param: bool $rc Update the recent changes table
param: bool $report Don't change things; just echo numbers
return: int Number of entries changed, or that would be changed

userConditions( &$user, $idfield, $utfield )   X-Ref
Return the most efficient set of user conditions
i.e. a user => id mapping, or a user_text => text mapping

param: User $user User for the condition
param: string $idfield Field name containing the identifier
param: string $utfield Field name containing the user text
return: array

userSpecification( &$user, $idfield, $utfield )   X-Ref
Return user specifications
i.e. user => id, user_text => text

param: User $user User for the spec
param: string $idfield Field name containing the identifier
param: string $utfield Field name containing the user text
return: array

initialiseUser( $username )   X-Ref
Initialise the user object

param: string $username Username or IP address
return: User



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1