60 parent::__construct( $text, $params );
97 if ( $this->message ===
null ) {
100 $prefix .=
'<span class="apihelp-deprecated">' .
101 $this->
subMessage(
'api-help-param-deprecated' ) .
106 $prefix .=
'<span class="apihelp-internal">' .
107 $this->
subMessage(
'api-help-param-internal' ) .
111 $this->message =
";<span dir=\"ltr\" lang=\"en\">{$this->paramValue}</span>:"
112 . $prefix . parent::fetchMessage();
123 return $msg->fetchMessage();
Message subclass that prepends wikitext for API help.
fetchMessage()
Fetch the message.
isInternal()
Fetch the 'internal' flag.
__construct( $paramValue, $text, $params=[], $deprecated=false, $internal=false)
getParamValue()
Fetch the parameter value.
isDeprecated()
Fetch the 'deprecated' flag.
The Message class deals with fetching and processing of interface message into a variety of formats.
bool $useDatabase
Whether database can be used.
string $key
The message key.
Language bool $language
In which language to get this message.
Title $title
Title object to use as context.
bool $interface
In which language to get this message.