X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiMessage.php;h=3347128757a2417050716626997235ac4d3f3d60;hb=7babd362babcbf7f20adb8e12edb4f4bc1d4249f;hp=9d69a771d423975cf773f8775679badbf39dc9a3;hpb=950b3f960aea995ab7c95b01519866a2a1c923ab;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiMessage.php b/includes/api/ApiMessage.php index 9d69a771d4..3347128757 100644 --- a/includes/api/ApiMessage.php +++ b/includes/api/ApiMessage.php @@ -30,6 +30,13 @@ * (see e.g. Title::getUserPermissionsErrors()) and the API has to make do with that. * * @since 1.25 + * @note This interface exists to work around PHP's inheritance, so ApiMessage + * can extend Message and ApiRawMessage can extend RawMessage while still + * allowing an instanceof check for a Message object including this + * functionality. If for some reason you feel the need to implement this + * interface on some other class, that class must also implement all the + * public methods the Message class provides (not just those from + * MessageSpecifier, which as written is fairly useless). * @ingroup API */ interface IApiMessage extends MessageSpecifier { @@ -126,6 +133,7 @@ trait ApiMessageTrait { 'rcpatroldisabled' => 'patroldisabled', 'readonlytext' => 'readonly', 'sessionfailure' => 'badtoken', + 'systemblockedtext' => 'blocked', 'titleprotected' => 'protectedtitle', 'undo-failure' => 'undofailure', 'userrights-nodatabase' => 'nosuchdatabase',