MediaWiki  master
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 }
setApiCode( $code, array $data=null)
Sets the machine-readable code for use by the API.
Interface for messages with machine-readable data for use by the API.
Definition: IApiMessage.php:39
getApiCode()
Returns a machine-readable code for use by the API.
setApiData(array $data)
Sets additional machine-readable data about the error condition.
getApiData()
Returns additional machine-readable data about the error condition.