BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
LoginHelper Class Reference
Inheritance diagram for LoginHelper:
Collaboration diagram for LoginHelper:

Public Member Functions

 __construct (IContextSource $context)
 
 showReturnToPage ($type, $returnTo= '', $returnToQuery= '', $stickHTTPS=false)
 
- Public Member Functions inherited from ContextSource
 getContext ()
 
 setContext (IContextSource $context)
 
 getConfig ()
 
 getRequest ()
 
 getTitle ()
 
 canUseWikiPage ()
 
 getWikiPage ()
 
 getOutput ()
 
 getUser ()
 
 getLanguage ()
 
 getSkin ()
 
 getTiming ()
 
 getStats ()
 
 msg ()
 
 exportSession ()
 

Static Public Member Functions

static getValidErrorMessages ()
 

Static Public Attributes

static $validErrorMessages
 

Detailed Description

Helper functions for the login form that need to be shared with other special pages (such as CentralAuth's SpecialCentralLogin).

Since
1.27

Member Function Documentation

static LoginHelper::getValidErrorMessages ( )
static

Returns an array of all valid error messages.

Returns
array
See Also
LoginHelper::$validErrorMessages
LoginHelper::showReturnToPage (   $type,
  $returnTo = '',
  $returnToQuery = '',
  $stickHTTPS = false 
)

Show a return link or redirect to it. Extensions can change where the link should point or inject content into the page (which will change it from redirect to link mode).

Parameters
string$typeOne of the following:
  • error: display a return to link ignoring $wgRedirectOnLogin
  • success: display a return to link using $wgRedirectOnLogin if needed
  • successredirect: send an HTTP redirect using $wgRedirectOnLogin if needed
string$returnTo
array | string$returnToQuery
bool$stickHTTPSKeep redirect link on HTTPS

Member Data Documentation

LoginHelper::$validErrorMessages
static
Initial value:
= [
'exception-nologin-text',
'watchlistanontext',
'changeemail-no-info',
'resetpass-no-info',
'confirmemail_needlogin',
'prefsnologintext2',
]

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