API: Add hooks for ApiQueryBase's query and row-processing
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 14 Sep 2016 18:22:35 +0000 (14:22 -0400)
committerGergő Tisza <gtisza@wikimedia.org>
Fri, 7 Oct 2016 03:38:59 +0000 (03:38 +0000)
commita514341e365cecbc6b7e75dbc31242583d026fb1
tree19d0af9777a6a3ddbf098771704645b094531980
parent75d8b6c6cd2b70d98242e1246678c12e973a5dfa
API: Add hooks for ApiQueryBase's query and row-processing

This will allow extensions to inject into the query to implement
"xxshow" parameters, and to add additional properties to the output
data for "xxprop" parameters.

Also, call these new hooks from ApiQueryRevisions, ApiQueryAllRevisions,
ApiQueryUserContributions, and ApiQueryRecentChanges since I701e8e19 is
going to be wanting them.

Bug: T143614
Bug: T143616
Change-Id: Id6b42c7f2eb53a6f659d0d61383287f41d96ca00
RELEASE-NOTES-1.28
docs/hooks.txt
includes/api/ApiQueryAllRevisions.php
includes/api/ApiQueryBase.php
includes/api/ApiQueryGeneratorBase.php
includes/api/ApiQueryRecentChanges.php
includes/api/ApiQueryRevisions.php
includes/api/ApiQueryUserContributions.php