MediaWiki
REL1_20
|
Maintenance script to rollback all edits by a given user or IP provided they're the most recent edit. More...
Public Member Functions | |
__construct () | |
Default constructor. | |
execute () | |
Do the actual work. | |
Private Member Functions | |
getRollbackTitles ($user) | |
Get all pages that should be rolled back for a given user. |
Maintenance script to rollback all edits by a given user or IP provided they're the most recent edit.
Definition at line 33 of file rollbackEdits.php.
Default constructor.
Children should call this *first* if implementing their own constructors
Reimplemented from Maintenance.
Definition at line 34 of file rollbackEdits.php.
References Maintenance\addOption().
Do the actual work.
All child classes will need to implement this
Reimplemented from Maintenance.
Definition at line 43 of file rollbackEdits.php.
References $page, $t, $title, $user, Maintenance\error(), WikiPage\factory(), User\getCanonicalName(), Maintenance\getOption(), getRollbackTitles(), Maintenance\hasOption(), User\isIP(), User\newFromName(), Title\newFromText(), and Maintenance\output().
RollbackEdits::getRollbackTitles | ( | $ | user | ) | [private] |
Get all pages that should be rolled back for a given user.
$user | String a name to check against rev_user_text |
Definition at line 90 of file rollbackEdits.php.
References $dbr, $user, Title\makeTitle(), and wfGetDB().
Referenced by execute().