MediaWiki  1.34.0
IApiMessage.php
Go to the documentation of this file.
1 <?php
39 interface IApiMessage extends MessageSpecifier {
49  public function getApiCode();
50 
55  public function getApiData();
56 
62  public function setApiCode( $code, array $data = null );
63 
68  public function setApiData( array $data );
69 }
IApiMessage\getApiData
getApiData()
Returns additional machine-readable data about the error condition.
MessageSpecifier
Definition: MessageSpecifier.php:21
IApiMessage\getApiCode
getApiCode()
Returns a machine-readable code for use by the API.
IApiMessage
Interface for messages with machine-readable data for use by the API.
Definition: IApiMessage.php:39
IApiMessage\setApiData
setApiData(array $data)
Sets additional machine-readable data about the error condition.
IApiMessage\setApiCode
setApiCode( $code, array $data=null)
Sets the machine-readable code for use by the API.