API PageSet allows generator for non-query modules
authorYuri Astrakhan <yuriastrakhan@gmail.com>
Fri, 8 Feb 2013 20:39:40 +0000 (15:39 -0500)
committerYuri Astrakhan <yuriastrakhan@gmail.com>
Fri, 8 Feb 2013 20:42:21 +0000 (15:42 -0500)
commit62216932c197f1c248ca2d95bc230f87a79ccd71
tree22ba067f6654521eef650167fec90929eccf668d
parenteb525842c12b3145ac187157c70dcb04a7a68efb
API PageSet allows generator for non-query modules

* PageSet can now be used in any action to process titles/pageids/revids
or any generator, redirects resolution, and converttitle functionality.
* action=purge proper usage of MustBePosted()
* Add supports for all pageset capabilities - generators, redirects, converttitles to
  action=purge and action=setnotificationtimestamp
* BREAKING CHANGE: ApiPageSet constructor now has two params instead of three, with only the
  first one keeping its meaning. ApiPageSet is now derived from ApiBase.
* BREAKING CHANGE: ApiQuery::newGenerator() and executeGeneratorModule() were deleted.

Change-Id: I7a3d7b6eb015d21ec1a9b9d9c6af9d97663f3f9a
13 files changed:
RELEASE-NOTES-1.21
docs/hooks.txt
includes/api/ApiBase.php
includes/api/ApiMain.php
includes/api/ApiPageSet.php
includes/api/ApiParamInfo.php
includes/api/ApiPurge.php
includes/api/ApiQuery.php
includes/api/ApiQueryAllImages.php
includes/api/ApiQueryBase.php
includes/api/ApiSetNotificationTimestamp.php
tests/phpunit/includes/api/ApiGeneratorTest.php
tests/phpunit/includes/api/PrefixUniquenessTest.php