MediaWiki master
|
Extension of Message implementing IApiMessage. More...
Inherits Message, and IApiMessage.
Public Member Functions | |
__construct ( $msg, $code=null, array $data=null) | |
Public Member Functions inherited from IApiMessage | |
getApiCode () | |
Returns a machine-readable code for use by the API. | |
getApiData () | |
Returns additional machine-readable data about the error condition. | |
setApiCode ( $code, array $data=null) | |
Sets the machine-readable code for use by the API. | |
setApiData (array $data) | |
Sets additional machine-readable data about the error condition. | |
Public Member Functions inherited from MessageSpecifier | |
getKey () | |
Returns the message key. | |
getParams () | |
Returns the message parameters. | |
Static Public Member Functions | |
static | create ( $msg, $code=null, array $data=null) |
Create an IApiMessage for the message. | |
Extension of Message implementing IApiMessage.
Definition at line 29 of file ApiMessage.php.
ApiMessage::__construct | ( | $msg, | |
$code = null, | |||
array | $data = null ) |
MessageSpecifier | string | array | $msg |
|
string | null | $code | |
array | null | $data |
Definition at line 75 of file ApiMessage.php.
References setApiCode().
|
static |
Create an IApiMessage for the message.
This returns $msg if it's an IApiMessage, calls 'new ApiRawMessage' if $msg is a RawMessage, or calls 'new ApiMessage' in all other cases.
MessageSpecifier | array | string | $msg | |
string | null | $code | |
array | null | $data |
Definition at line 45 of file ApiMessage.php.