MediaWiki  REL1_20
CreateAndPromote Class Reference

Maintenance script to create an account and grant it administrator rights. More...

Inheritance diagram for CreateAndPromote:
Collaboration diagram for CreateAndPromote:

List of all members.

Public Member Functions

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

Detailed Description

Maintenance script to create an account and grant it administrator rights.

Definition at line 32 of file createAndPromote.php.


Constructor & Destructor Documentation

Default constructor.

Children should call this *first* if implementing their own constructors

Reimplemented from Maintenance.

Definition at line 34 of file createAndPromote.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 createAndPromote.php.

References $user, Maintenance\error(), Maintenance\getArg(), MWException\getText(), Maintenance\hasOption(), User\newFromName(), Maintenance\output(), and wfWikiID().


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