MediaWiki  REL1_20
SpecialPasswordReset Class Reference

Special page for requesting a password reset email. More...

Inheritance diagram for SpecialPasswordReset:
Collaboration diagram for SpecialPasswordReset:

List of all members.

Public Member Functions

 __construct ()
 alterForm (HTMLForm $form)
 Play with the HTMLForm if you need to more substantially.
 checkExecutePermissions (User $user)
 Called from execute() to check if the given user can perform this action.
 isListed ()
 Hide the password reset page if resets are disabled.
 onSubmit (array $data)
 Process the form.
 onSuccess ()
 Do something exciting on successful processing of the form, most likely to show a confirmation message.
 userCanExecute (User $user)
 Checks if the given user (identified by an object) can execute this special page (as defined by $mRestriction).

Protected Member Functions

 canChangePassword (User $user)
 getFormFields ()
 Get an HTMLForm descriptor array.
 preText ()
 Add pre- or post-text to the form.

Private Attributes

Message $email
Status $result

Detailed Description

Special page for requesting a password reset email.

Definition at line 29 of file SpecialPasswordReset.php.


Constructor & Destructor Documentation


Member Function Documentation

Play with the HTMLForm if you need to more substantially.

Parameters:
$formHTMLForm

Reimplemented from FormSpecialPage.

Definition at line 98 of file SpecialPasswordReset.php.

Definition at line 290 of file SpecialPasswordReset.php.

Called from execute() to check if the given user can perform this action.

Failures here must throw subclasses of ErrorPageError.

Parameters:
$userUser
Returns:
Bool true
Exceptions:
ErrorPageError

Reimplemented from FormSpecialPage.

Definition at line 47 of file SpecialPasswordReset.php.

Get an HTMLForm descriptor array.

Returns:
Array

Reimplemented from FormSpecialPage.

Definition at line 58 of file SpecialPasswordReset.php.

Hide the password reset page if resets are disabled.

Returns:
Bool

Reimplemented from SpecialPage.

Definition at line 318 of file SpecialPasswordReset.php.

SpecialPasswordReset::onSubmit ( array $  data)

Process the form.

At this point we know that the user passes all the criteria in userCanExecute(), and if the data array contains 'Username', etc, then Username resets are allowed.

Parameters:
$dataarray
Returns:
Bool|Array

Reimplemented from FormSpecialPage.

Definition at line 124 of file SpecialPasswordReset.php.

Do something exciting on successful processing of the form, most likely to show a confirmation message.

Reimplemented from FormSpecialPage.

Definition at line 273 of file SpecialPasswordReset.php.

Add pre- or post-text to the form.

Returns:
String HTML which will be sent to $form->addPreText()

Reimplemented from FormSpecialPage.

Definition at line 102 of file SpecialPasswordReset.php.

Checks if the given user (identified by an object) can execute this special page (as defined by $mRestriction).

Can be overridden by sub- classes with more complicated permissions schemes.

Parameters:
$userUser: the user to check
Returns:
Boolean: does the user have permission to view the page?

Reimplemented from SpecialPage.

Definition at line 43 of file SpecialPasswordReset.php.


Member Data Documentation

Message SpecialPasswordReset::$email [private]

Definition at line 33 of file SpecialPasswordReset.php.

Status SpecialPasswordReset::$result [private]

Definition at line 37 of file SpecialPasswordReset.php.


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