EmailConfirmation Class Reference
[SpecialPage]

Special page allows users to request email confirmation message, and handles processing of the confirmation code when the link in the email is followed. More...

Inherits UnlistedSpecialPage.

List of all members.

Public Member Functions

 __construct ()
 Constructor.
 execute ($code)
 Main execution point.
 showRequestForm ()
 Show a nice form for the user to request a confirmation mail.
 attemptConfirm ($code)
 Attempt to confirm the user's email address and show success or failure as needed; if successful, take the user to log in.


Detailed Description

Special page allows users to request email confirmation message, and handles processing of the confirmation code when the link in the email is followed.

Author:
Brion Vibber

Rob Church <robchur@gmail.com>

Definition at line 11 of file SpecialConfirmemail.php.


Constructor & Destructor Documentation

EmailConfirmation::__construct (  ) 

Constructor.

Definition at line 16 of file SpecialConfirmemail.php.


Member Function Documentation

EmailConfirmation::attemptConfirm ( code  ) 

Attempt to confirm the user's email address and show success or failure as needed; if successful, take the user to log in.

Parameters:
$code Confirmation code

Definition at line 89 of file SpecialConfirmemail.php.

References $code, $title, $user, $wgOut, $wgUser, SpecialPage::getTitleFor(), and User::newFromConfirmationCode().

Referenced by execute().

EmailConfirmation::execute ( code  ) 

Main execution point.

Parameters:
$code Confirmation code passed to the page

Reimplemented from SpecialPage.

Definition at line 25 of file SpecialConfirmemail.php.

References $code, $self, $title, $wgOut, $wgUser, attemptConfirm(), SpecialPage::getTitleFor(), User::isValidEmailAddr(), SpecialPage::setHeaders(), showRequestForm(), wfMsgHtml(), and wfMsgWikiHtml().

EmailConfirmation::showRequestForm (  ) 

Show a nice form for the user to request a confirmation mail.

Definition at line 51 of file SpecialConfirmemail.php.

References $ok, $self, $t, $wgLang, $wgOut, $wgRequest, $wgUser, Xml::closeElement(), SpecialPage::getTitleFor(), Xml::hidden(), WikiError::isError(), Xml::openElement(), Xml::submitButton(), and wfMsg().

Referenced by execute().


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

Generated on Sat Sep 5 02:08:36 2009 for MediaWiki by  doxygen 1.5.9