MediaWiki  1.29.2
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=[])
 
 fetchMessage ()
 Fetch the message. More...
 
 getParamValue ()
 Fetch the parameter value. More...
 

Protected Attributes

 $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 = [] 
)
See also
Message::__construct
Parameters
string$paramValueParameter value being documented
string$textMessage to use.
array$paramsParameters for the message.
Exceptions
InvalidArgumentException

Definition at line 48 of file ApiHelpParamValueMessage.php.

References $params, and $paramValue.

Member Function Documentation

◆ fetchMessage()

ApiHelpParamValueMessage::fetchMessage ( )

Fetch the message.

Returns
string

Definition at line 65 of file ApiHelpParamValueMessage.php.

References message.

◆ getParamValue()

ApiHelpParamValueMessage::getParamValue ( )

Fetch the parameter value.

Returns
string

Definition at line 57 of file ApiHelpParamValueMessage.php.

References $paramValue.

Member Data Documentation

◆ $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: