MediaWiki
master
IApiMessage.php
Go to the documentation of this file.
1
<?php
21
namespace
MediaWiki\Api
;
22
23
use
Wikimedia\Message\MessageSpecifier
;
24
43
interface
IApiMessage
extends
MessageSpecifier
{
53
public
function
getApiCode
();
54
59
public
function
getApiData
();
60
66
public
function
setApiCode
( $code, ?array $data =
null
);
67
72
public
function
setApiData
( array $data );
73
}
74
76
class_alias( IApiMessage::class,
'IApiMessage'
);
MediaWiki\Api\IApiMessage
Interface for messages with machine-readable data for use by the API.
Definition
IApiMessage.php:43
MediaWiki\Api\IApiMessage\getApiData
getApiData()
Returns additional machine-readable data about the error condition.
MediaWiki\Api\IApiMessage\setApiData
setApiData(array $data)
Sets additional machine-readable data about the error condition.
MediaWiki\Api\IApiMessage\setApiCode
setApiCode( $code, ?array $data=null)
Sets the machine-readable code for use by the API.
MediaWiki\Api\IApiMessage\getApiCode
getApiCode()
Returns a machine-readable code for use by the API.
Wikimedia\Message\MessageSpecifier
Definition
MessageSpecifier.php:26
MediaWiki\Api
Definition
ApiAcquireTempUserName.php:22
includes
api
IApiMessage.php
Generated on Wed Dec 18 2024 06:23:15 for MediaWiki by
1.10.0