MediaWiki  REL1_20
Protect Class Reference

Maintenance script that protects or unprotects a page. More...

Inheritance diagram for Protect:
Collaboration diagram for Protect:

List of all members.

Public Member Functions

 __construct ()
 Default constructor.
 execute ()
 Do the actual work.

Detailed Description

Maintenance script that protects or unprotects a page.

Definition at line 31 of file protect.php.


Constructor & Destructor Documentation

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().


Member Function Documentation

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().


The documentation for this class was generated from the following file: