MediaWiki
REL1_20
|
Maintenance script that protects or unprotects a page. More...
Public Member Functions | |
__construct () | |
Default constructor. | |
execute () | |
Do the actual work. |
Maintenance script that protects or unprotects a page.
Definition at line 31 of file protect.php.
Default constructor.
Children should call this *first* if implementing their own constructors
Reimplemented from Maintenance.
Definition at line 32 of file protect.php.
References Maintenance\addArg(), and Maintenance\addOption().
Protect::execute | ( | ) |
Do the actual work.
All child classes will need to implement this
Reimplemented from Maintenance.
Definition at line 43 of file protect.php.
References $page, $t, $user, Maintenance\error(), WikiPage\factory(), Maintenance\getArg(), Maintenance\getOption(), Maintenance\hasOption(), User\newFromName(), Title\newFromText(), and Maintenance\output().