API: Add more parameter types and improve info
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 7 May 2015 16:39:55 +0000 (12:39 -0400)
committerUmherirrender <umherirrender_de.wp@web.de>
Fri, 29 May 2015 19:26:44 +0000 (19:26 +0000)
commitdf80f1ead5daa993facf934fb32b0d5e10e3d5b9
tree35eba4fa002545e0a621e504c19e25e8768807d2
parentb79196778ed7c4f49ae09bee9ba16f861a6e3760
API: Add more parameter types and improve info

New types 'text' and 'password' for where a <textarea> or
<input type="password"> would be preferred over <input type="text">.

Some timestamp parameters get actually tagged as 'timestamp'.

'submodule' types change the 'submodules' output property from a boolean
to an object indicating the mapping from values to module paths. And
they get an indication of the submodule parameter prefix (e.g.
generator's "g"), if applicable. "generator" actually gets reported as a
submodule type, using this new mechanism.

action=paraminfo will now indicate ApiBase::PARAM_RANGE_ENFORCE status,
and return better-formatted defaults for timestamps and booleans.

Change-Id: Ic862d6f8fe13f7eb6b4298683514d33af5823e47
14 files changed:
includes/api/ApiBase.php
includes/api/ApiCreateAccount.php
includes/api/ApiEditPage.php
includes/api/ApiEmailUser.php
includes/api/ApiExpandTemplates.php
includes/api/ApiHelp.php
includes/api/ApiLogin.php
includes/api/ApiPageSet.php
includes/api/ApiParamInfo.php
includes/api/ApiParse.php
includes/api/ApiStashEdit.php
includes/api/ApiUpload.php
includes/api/i18n/en.json
includes/api/i18n/qqq.json