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

Public Member Functions

 __construct ($msg= 'badtitletext', $params=[])
 
- Public Member Functions inherited from BadRequestError
 report ()
 
- Public Member Functions inherited from ErrorPageError
 __construct ($title, $msg, $params=[])
 
 getMessageObject ()
 
 report ()
 
- Public Member Functions inherited from MWException
 useOutputPage ()
 
 isLoggable ()
 
 useMessageCache ()
 
 msg ($key, $fallback)
 
 getHTML ()
 
 getText ()
 
 getPageTitle ()
 
 reportHTML ()
 
 report ()
 
- Public Member Functions inherited from Exception
 __construct ($message="", $code=0, Throwable $previous=null)
 
 getMessage ()
 
 getCode ()
 
 getFile ()
 
 getLine ()
 
 getTrace ()
 
 getPrevious ()
 
 getTraceAsString ()
 
 __toString ()
 

Additional Inherited Members

- Static Public Member Functions inherited from MWException
static isCommandLine ()
 
- Public Attributes inherited from ErrorPageError
 $title
 
 $msg
 
 $params
 
- Protected Attributes inherited from Exception
 $message
 
 $code
 
 $file
 
 $line
 

Detailed Description

Show an error page on a badtitle.

Uses BadRequestError to emit a 400 HTTP error code to ensure caching proxies and mobile browsers know not to cache it as valid content. (T35646)

Since
1.19

Constructor & Destructor Documentation

BadTitleError::__construct (   $msg = 'badtitletext',
  $params = [] 
)
Parameters
string | Message | MalformedTitleException$msgA message key (default: 'badtitletext'), or a MalformedTitleException to figure out things from
array$paramsParameter to wfMessage()

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