MediaWiki REL1_39
IApiMessage.php
Go to the documentation of this file.
1<?php
39interface 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}
Interface for messages with machine-readable data for use by the API.
setApiCode( $code, array $data=null)
Sets the machine-readable code for use by the API.
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.