MediaWiki  REL1_19
SpecialChangeEmail Class Reference

Let users change their email address. More...

Inheritance diagram for SpecialChangeEmail:
Collaboration diagram for SpecialChangeEmail:

List of all members.

Public Member Functions

 __construct ()
 execute ($par)
 Main execution point.
 isListed ()
 Whether this special page is listed in Special:SpecialPages.

Protected Member Functions

 attemptChange (User $user, $pass, $newaddr)
 doReturnTo ($type= 'hard')
 error ($msg)
 pretty ($fields)
 showForm ()

Detailed Description

Let users change their email address.

Definition at line 29 of file SpecialChangeEmail.php.


Constructor & Destructor Documentation


Member Function Documentation

SpecialChangeEmail::attemptChange ( User user,
pass,
newaddr 
) [protected]
Returns:
bool|string true or string on success, false on failure

Definition at line 178 of file SpecialChangeEmail.php.

References $pass, User\checkPassword(), User\checkTemporaryPassword(), LoginForm\clearLoginThrottle(), error(), User\getName(), SpecialPage\getOutput(), LoginForm\incLoginThrottle(), User\saveSettings(), Preferences\trySetUserEmail(), and Sanitizer\validateEmail().

Referenced by execute().

Here is the call graph for this function:

Here is the caller graph for this function:

SpecialChangeEmail::doReturnTo ( type = 'hard') [protected]

Definition at line 93 of file SpecialChangeEmail.php.

References SpecialPage\getOutput(), SpecialPage\getRequest(), Title\newFromText(), and Title\newMainPage().

Referenced by execute().

Here is the call graph for this function:

Here is the caller graph for this function:

SpecialChangeEmail::error ( msg) [protected]

Definition at line 105 of file SpecialChangeEmail.php.

References SpecialPage\getOutput().

Referenced by attemptChange(), and execute().

Here is the call graph for this function:

Here is the caller graph for this function:

Whether this special page is listed in Special:SpecialPages.

Since:
r3583 (v1.3)
Returns:
Bool

Reimplemented from UnlistedSpecialPage.

Definition at line 34 of file SpecialChangeEmail.php.

References $wgAuth.

SpecialChangeEmail::pretty ( fields) [protected]

Definition at line 146 of file SpecialChangeEmail.php.

References $out, Html\input(), Xml\label(), and SpecialPage\msg().

Referenced by showForm().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 109 of file SpecialChangeEmail.php.

References $user, Xml\closeElement(), Xml\fieldset(), SpecialPage\getOutput(), SpecialPage\getRequest(), SpecialPage\getTitle(), SpecialPage\getUser(), Html\hidden(), SpecialPage\msg(), Xml\openElement(), pretty(), and Xml\submitButton().

Referenced by execute().

Here is the call graph for this function:

Here is the caller graph for this function:


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