aboutsummaryrefslogtreecommitdiffstats
path: root/includes/api/ApiQueryAllUsers.php
diff options
context:
space:
mode:
authorBrad Jorsch <bjorsch@wikimedia.org>2014-08-07 16:48:59 +0100
committerBrad Jorsch <bjorsch@wikimedia.org>2014-08-07 16:51:19 +0100
commitf0a6435f3b7242d64996298e5b1cafd65e7bce94 (patch)
tree8bd1bbd15eee0061c867777fec146d32445ca940 /includes/api/ApiQueryAllUsers.php
parentaf87cb4a3f528859bbe89df5db49f35fec07d9e5 (diff)
downloadmediawikicore-f0a6435f3b7242d64996298e5b1cafd65e7bce94.tar.gz
mediawikicore-f0a6435f3b7242d64996298e5b1cafd65e7bce94.zip
API: Remove action=paraminfo 'props' and 'errors' result properties
The format for 'props' was never specified and the list for 'errors' is impossible to keep updated when considering that many errors come from MediaWiki backend code and extension hook functions. And since there doesn't seem to be any real use case for either of these, let's just kill both of them instead of wasting effort on trying to fix them. Note that neither getResultProperties nor getPossibleErrors are called from any extensions in gerrit, and none of the other deprecated methods are called outside of the implementations of those two methods. Removing the obsolete methods is left to the maintainers of the extensions, as keeping them hurts nothing and is needed to maintain compatibility with earlier versions of MediaWiki. Change-Id: Ie11a401d60c834059fbf1b5625ca8ea093b3337c
Diffstat (limited to 'includes/api/ApiQueryAllUsers.php')
-rw-r--r--includes/api/ApiQueryAllUsers.php51
1 files changed, 0 insertions, 51 deletions
diff --git a/includes/api/ApiQueryAllUsers.php b/includes/api/ApiQueryAllUsers.php
index b27f6c223c56..dfef28608448 100644
--- a/includes/api/ApiQueryAllUsers.php
+++ b/includes/api/ApiQueryAllUsers.php
@@ -421,61 +421,10 @@ class ApiQueryAllUsers extends ApiQueryBase {
);
}
- public function getResultProperties() {
- return array(
- '' => array(
- 'userid' => 'integer',
- 'name' => 'string',
- 'recentactions' => array(
- ApiBase::PROP_TYPE => 'integer',
- ApiBase::PROP_NULLABLE => true
- )
- ),
- 'blockinfo' => array(
- 'blockid' => array(
- ApiBase::PROP_TYPE => 'integer',
- ApiBase::PROP_NULLABLE => true
- ),
- 'blockedby' => array(
- ApiBase::PROP_TYPE => 'string',
- ApiBase::PROP_NULLABLE => true
- ),
- 'blockedbyid' => array(
- ApiBase::PROP_TYPE => 'integer',
- ApiBase::PROP_NULLABLE => true
- ),
- 'blockedreason' => array(
- ApiBase::PROP_TYPE => 'string',
- ApiBase::PROP_NULLABLE => true
- ),
- 'blockedexpiry' => array(
- ApiBase::PROP_TYPE => 'string',
- ApiBase::PROP_NULLABLE => true
- ),
- 'hidden' => 'boolean'
- ),
- 'editcount' => array(
- 'editcount' => 'integer'
- ),
- 'registration' => array(
- 'registration' => 'string'
- )
- );
- }
-
public function getDescription() {
return 'Enumerate all registered users.';
}
- public function getPossibleErrors() {
- return array_merge( parent::getPossibleErrors(), array(
- array(
- 'code' => 'group-excludegroup',
- 'info' => 'group and excludegroup cannot be used together'
- ),
- ) );
- }
-
public function getExamples() {
return array(
'api.php?action=query&list=allusers&aufrom=Y',