diff options
author | Brad Jorsch <bjorsch@wikimedia.org> | 2014-08-07 16:48:59 +0100 |
---|---|---|
committer | Brad Jorsch <bjorsch@wikimedia.org> | 2014-08-07 16:51:19 +0100 |
commit | f0a6435f3b7242d64996298e5b1cafd65e7bce94 (patch) | |
tree | 8bd1bbd15eee0061c867777fec146d32445ca940 /includes/api/ApiQueryQueryPage.php | |
parent | af87cb4a3f528859bbe89df5db49f35fec07d9e5 (diff) | |
download | mediawikicore-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/ApiQueryQueryPage.php')
-rw-r--r-- | includes/api/ApiQueryQueryPage.php | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/includes/api/ApiQueryQueryPage.php b/includes/api/ApiQueryQueryPage.php index 1a7f826a79d7..5ddd94508c5b 100644 --- a/includes/api/ApiQueryQueryPage.php +++ b/includes/api/ApiQueryQueryPage.php @@ -163,48 +163,10 @@ class ApiQueryQueryPage extends ApiQueryGeneratorBase { ); } - public function getResultProperties() { - return array( - ApiBase::PROP_ROOT => array( - 'name' => array( - ApiBase::PROP_TYPE => 'string', - ApiBase::PROP_NULLABLE => false - ), - 'disabled' => array( - ApiBase::PROP_TYPE => 'boolean', - ApiBase::PROP_NULLABLE => false - ), - 'cached' => array( - ApiBase::PROP_TYPE => 'boolean', - ApiBase::PROP_NULLABLE => false - ), - 'cachedtimestamp' => array( - ApiBase::PROP_TYPE => 'timestamp', - ApiBase::PROP_NULLABLE => true - ) - ), - '' => array( - 'value' => 'string', - 'timestamp' => array( - ApiBase::PROP_TYPE => 'timestamp', - ApiBase::PROP_NULLABLE => true - ), - 'ns' => 'namespace', - 'title' => 'string' - ) - ); - } - public function getDescription() { return 'Get a list provided by a QueryPage-based special page.'; } - public function getPossibleErrors() { - return array_merge( parent::getPossibleErrors(), array( - array( 'specialpage-cantexecute' ) - ) ); - } - public function getExamples() { return array( 'api.php?action=query&list=querypage&qppage=Ancientpages' |