MediaWiki  1.30.0
MalformedTitleException Class Reference

MalformedTitleException is thrown when a TitleParser is unable to parse a title string. More...

Inheritance diagram for MalformedTitleException:
Collaboration diagram for MalformedTitleException:

Public Member Functions

 __construct ( $errorMessage, $titleText=null, $errorMessageParameters=[])
 
 getErrorMessage ()
 
 getErrorMessageParameters ()
 
 getMessageObject ()
 
 getTitleText ()
 

Private Attributes

 $errorMessage = null
 
 $errorMessageParameters = []
 
 $titleText = null
 

Detailed Description

MalformedTitleException is thrown when a TitleParser is unable to parse a title string.

Since
1.23

Definition at line 25 of file MalformedTitleException.php.

Constructor & Destructor Documentation

◆ __construct()

MalformedTitleException::__construct (   $errorMessage,
  $titleText = null,
  $errorMessageParameters = [] 
)
Parameters
string$errorMessageLocalisation message describing the error (since MW 1.26)
string$titleTextThe invalid title text (since MW 1.26)
string[]$errorMessageParametersAdditional parameters for the error message. $titleText will be appended if it's not null. (since MW 1.26)

Definition at line 36 of file MalformedTitleException.php.

References $errorMessage, $errorMessageParameters, $titleText, and wfMessage().

Member Function Documentation

◆ getErrorMessage()

MalformedTitleException::getErrorMessage ( )
Since
1.26
Returns
string

Definition at line 64 of file MalformedTitleException.php.

References $errorMessage.

Referenced by getMessageObject(), TitleTest\testSecureAndSplitInvalid(), and HTMLTitleTextField\validate().

◆ getErrorMessageParameters()

MalformedTitleException::getErrorMessageParameters ( )
Since
1.26
Returns
string[]

Definition at line 72 of file MalformedTitleException.php.

References $errorMessageParameters.

Referenced by getMessageObject().

◆ getMessageObject()

MalformedTitleException::getMessageObject ( )
Since
1.29
Returns
Message

Implements ILocalizedException.

Definition at line 80 of file MalformedTitleException.php.

References getErrorMessage(), getErrorMessageParameters(), and wfMessage().

Referenced by SpecialPageLanguage\onSubmit().

◆ getTitleText()

MalformedTitleException::getTitleText ( )
Since
1.26
Returns
string|null

Definition at line 56 of file MalformedTitleException.php.

References $titleText.

Member Data Documentation

◆ $errorMessage

MalformedTitleException::$errorMessage = null
private

Definition at line 27 of file MalformedTitleException.php.

Referenced by __construct(), and getErrorMessage().

◆ $errorMessageParameters

MalformedTitleException::$errorMessageParameters = []
private

Definition at line 28 of file MalformedTitleException.php.

Referenced by __construct(), and getErrorMessageParameters().

◆ $titleText

MalformedTitleException::$titleText = null
private

Definition at line 26 of file MalformedTitleException.php.

Referenced by __construct(), and getTitleText().


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