MediaWiki  1.34.0
MediaWiki\Extensions\ParserFunctions\ExprError Class Reference
Inheritance diagram for MediaWiki\Extensions\ParserFunctions\ExprError:
Collaboration diagram for MediaWiki\Extensions\ParserFunctions\ExprError:

Public Member Functions

 __construct ( $msg, $parameter='')
 
 getUserFriendlyMessage ()
 Replacement for getMessage() to prevent message parsing during tests which initializes whole bloody MediaWiki. More...
 

Private Attributes

Message $mwMessage
 

Detailed Description

Definition at line 24 of file ExprError.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extensions\ParserFunctions\ExprError::__construct (   $msg,
  $parameter = '' 
)
Parameters
string$msg
string$parameter

Definition at line 32 of file ExprError.php.

References wfMessage().

Member Function Documentation

◆ getUserFriendlyMessage()

MediaWiki\Extensions\ParserFunctions\ExprError::getUserFriendlyMessage ( )

Replacement for getMessage() to prevent message parsing during tests which initializes whole bloody MediaWiki.

Returns
string Error message to be to be displayed to end users

Definition at line 48 of file ExprError.php.

Referenced by MediaWiki\Extensions\ParserFunctions\ParserFunctions\expr(), and MediaWiki\Extensions\ParserFunctions\ParserFunctions\ifexpr().

Member Data Documentation

◆ $mwMessage

Message MediaWiki\Extensions\ParserFunctions\ExprError::$mwMessage
private

Definition at line 26 of file ExprError.php.


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