[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/exception/ -> UserNotLoggedIn.php (summary)

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

File Size: 102 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

UserNotLoggedIn:: (2 methods):
  __construct()
  report()


Class: UserNotLoggedIn  - X-Ref

Redirect a user to the login page

This is essentially an ErrorPageError exception which by default uses the
'exception-nologin' as a title and 'exception-nologin-text' for the message.

__construct($reasonMsg = 'exception-nologin-text',$titleMsg = 'exception-nologin',$params = array()   X-Ref

param: string $reasonMsg A message key containing the reason for the error.
param: string $titleMsg A message key to set the page title.
param: array $params Parameters to wfMessage().

report()   X-Ref
Redirect to Special:Userlogin if the specified message is compatible. Otherwise,
show an error page as usual.




Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1