MediaWiki
1.30.0
|
Message subclass that prepends wikitext for API help. More...
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 | |
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.
Definition at line 36 of file ApiHelpParamValueMessage.php.
ApiHelpParamValueMessage::__construct | ( | $paramValue, | |
$text, | |||
$params = [] , |
|||
$deprecated = false |
|||
) |
string | $paramValue | Parameter value being documented |
string | $text | Message to use. |
array | $params | Parameters for the message. |
bool | $deprecated | Whether the value is deprecated |
InvalidArgumentException |
$deprecated
parameter Definition at line 51 of file ApiHelpParamValueMessage.php.
References $deprecated, $params, and $paramValue.
ApiHelpParamValueMessage::fetchMessage | ( | ) |
Fetch the message.
Definition at line 78 of file ApiHelpParamValueMessage.php.
References $title, isDeprecated(), and message.
ApiHelpParamValueMessage::getParamValue | ( | ) |
Fetch the parameter value.
Definition at line 61 of file ApiHelpParamValueMessage.php.
References $paramValue.
ApiHelpParamValueMessage::isDeprecated | ( | ) |
Fetch the 'deprecated' flag.
Definition at line 70 of file ApiHelpParamValueMessage.php.
References $deprecated.
Referenced by fetchMessage().
|
protected |
Definition at line 39 of file ApiHelpParamValueMessage.php.
Referenced by __construct(), and isDeprecated().
|
protected |
Definition at line 38 of file ApiHelpParamValueMessage.php.
Referenced by __construct(), and getParamValue().