MediaWiki
1.30.0
|
Extension of RawMessage implementing IApiMessage. More...
Public Member Functions | |
__construct ( $msg, $code=null, array $data=null) | |
Public Member Functions inherited from RawMessage | |
__construct ( $text, $params=[]) | |
Call the parent constructor, then store the key as the message. More... | |
fetchMessage () | |
Fetch the message (in this case, the key). More... | |
Public Member Functions inherited from IApiMessage | |
getApiCode () | |
Returns a machine-readable code for use by the API. More... | |
getApiData () | |
Returns additional machine-readable data about the error condition. More... | |
setApiCode ( $code, array $data=null) | |
Sets the machine-readable code for use by the API. More... | |
setApiData (array $data) | |
Sets additional machine-readable data about the error condition. More... | |
Public Member Functions inherited from MessageSpecifier | |
getKey () | |
Returns the message key. More... | |
getParams () | |
Returns the message parameters. More... | |
Extension of RawMessage implementing IApiMessage.
Definition at line 268 of file ApiMessage.php.
ApiRawMessage::__construct | ( | $msg, | |
$code = null , |
|||
array | $data = null |
||
) |
RawMessage | string | array | $msg |
|
string | null | $code | |
array | null | $data |
Definition at line 279 of file ApiMessage.php.
References $code, $value, as, and IApiMessage\setApiCode().