3 namespace MediaWiki\Api\Hook
;
5 use MediaWiki\Api\ApiQueryBase
;
6 use Wikimedia\Rdbms\IResultWrapper
;
9 * This is a hook handler interface, see docs/Hooks.md.
10 * Use the hook name "ApiQueryBaseAfterQuery" to register handlers implementing this interface.
12 * @stable to implement
15 interface ApiQueryBaseAfterQueryHook
{
17 * This hook is called for (some) API query modules after the
18 * database query has returned. An API query module wanting to use this hook
19 * should see the ApiQueryBase::select() and ApiQueryBase::processRow()
24 * @param ApiQueryBase $module Module in question
25 * @param IResultWrapper $result ResultWrapper
26 * @param array &$hookData Array that was passed to the ApiQueryBaseBeforeQuery hook and
27 * will be passed to the ApiQueryBaseProcessRow hook, intended for inter-hook
29 * @return bool|void True or no return value to continue or false to abort
31 public function onApiQueryBaseAfterQuery( $module, $result, &$hookData );