MediaWiki  1.30.0
ApiHelpParamValueMessage Class Reference

Message subclass that prepends wikitext for API help. More...

Inheritance diagram for ApiHelpParamValueMessage:
Collaboration diagram for ApiHelpParamValueMessage:

Public Member Functions

 __construct ( $paramValue, $text, $params=[], $deprecated=false)
 
 fetchMessage ()
 Fetch the message. More...
 
 getParamValue ()
 Fetch the parameter value. More...
 
 isDeprecated ()
 Fetch the 'deprecated' flag. More...
 

Protected Attributes

 $deprecated
 
 $paramValue
 

Detailed Description

Message subclass that prepends wikitext for API help.

This exists so the apihelp-*-paramvalue-*-* messages don't all have to include markup wikitext while still keeping the 'APIGetParamDescriptionMessages' hook simple.

Since
1.25

Definition at line 36 of file ApiHelpParamValueMessage.php.

Constructor & Destructor Documentation

◆ __construct()

ApiHelpParamValueMessage::__construct (   $paramValue,
  $text,
  $params = [],
  $deprecated = false 
)
See also
Message::__construct
Parameters
string$paramValueParameter value being documented
string$textMessage to use.
array$paramsParameters for the message.
bool$deprecatedWhether the value is deprecated
Exceptions
InvalidArgumentException
Since
1.30 Added the $deprecated parameter

Definition at line 51 of file ApiHelpParamValueMessage.php.

References $deprecated, $params, and $paramValue.

Member Function Documentation

◆ fetchMessage()

ApiHelpParamValueMessage::fetchMessage ( )

Fetch the message.

Returns
string

Definition at line 78 of file ApiHelpParamValueMessage.php.

References $title, isDeprecated(), and message.

◆ getParamValue()

ApiHelpParamValueMessage::getParamValue ( )

Fetch the parameter value.

Returns
string

Definition at line 61 of file ApiHelpParamValueMessage.php.

References $paramValue.

◆ isDeprecated()

ApiHelpParamValueMessage::isDeprecated ( )

Fetch the 'deprecated' flag.

Since
1.30
Returns
bool

Definition at line 70 of file ApiHelpParamValueMessage.php.

References $deprecated.

Referenced by fetchMessage().

Member Data Documentation

◆ $deprecated

ApiHelpParamValueMessage::$deprecated
protected

Definition at line 39 of file ApiHelpParamValueMessage.php.

Referenced by __construct(), and isDeprecated().

◆ $paramValue

ApiHelpParamValueMessage::$paramValue
protected

Definition at line 38 of file ApiHelpParamValueMessage.php.

Referenced by __construct(), and getParamValue().


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