ApiMessage: Improve documentation
authorBartosz Dziewoński <matma.rex@gmail.com>
Tue, 13 Oct 2015 21:30:04 +0000 (23:30 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 15 Oct 2015 19:12:35 +0000 (21:12 +0200)
Based on an excerpt from Anomie's IRC conversation with me.

Change-Id: I02661548a30fd40eaa72d77c98a6801dbbaff456

includes/api/ApiMessage.php

index db826a6..370911a 100644 (file)
 
 /**
  * Interface for messages with machine-readable data for use by the API
+ *
+ * The idea is that it's a Message that has some extra data for the API to use when interpreting it
+ * as an error (or, in the future, as a warning). Internals of MediaWiki often use messages (or
+ * message keys, or Status objects containing messages) to pass information about errors to the user
+ * (see e.g. Title::getUserPermissionsErrors()) and the API has to make do with that.
+ *
  * @since 1.25
  * @ingroup API
  */