|
MediaWiki
REL1_20
|
Maintenance script to cleanup all spam from a given hostname. More...


Public Member Functions | |
| __construct () | |
| Default constructor. | |
| execute () | |
| Do the actual work. | |
Private Member Functions | |
| cleanupArticle ($id, $domain) | |
Maintenance script to cleanup all spam from a given hostname.
Definition at line 31 of file cleanupSpam.php.
Default constructor.
Children should call this *first* if implementing their own constructors
Reimplemented from Maintenance.
Definition at line 33 of file cleanupSpam.php.
References Maintenance\addArg(), and Maintenance\addOption().
| CleanupSpam::cleanupArticle | ( | $ | id, |
| $ | domain | ||
| ) | [private] |
Definition at line 95 of file cleanupSpam.php.
References $page, $title, Revision\DELETED_TEXT, Maintenance\error(), WikiPage\factory(), Maintenance\hasOption(), LinkFilter\matchEntry(), Title\newFromID(), Revision\newFromTitle(), Maintenance\output(), wfGetDB(), and wfMessage().
Referenced by execute().
Do the actual work.
All child classes will need to implement this
Reimplemented from Maintenance.
Definition at line 41 of file cleanupSpam.php.
References $count, $dbr, $res, $wgUser, cleanupArticle(), Maintenance\error(), Maintenance\getArg(), Maintenance\hasOption(), LinkFilter\makeLikeArray(), User\newFromName(), Maintenance\output(), wfGetDB(), and wfMessage().