MediaWiki REL1_39
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onApiQueryBaseProcessRow ( $module, $row, &$data, &$hookData) | |
This hook is called for (some) API query modules as each row of the database result is processed. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "ApiQueryBaseProcessRow" to register handlers implementing this interface.
Definition at line 15 of file ApiQueryBaseProcessRowHook.php.
MediaWiki\Api\Hook\ApiQueryBaseProcessRowHook::onApiQueryBaseProcessRow | ( | $module, | |
$row, | |||
& | $data, | ||
& | $hookData ) |
This hook is called for (some) API query modules as each row of the database result is processed.
An API query module wanting to use this hook should see the ApiQueryBase::select() and ApiQueryBase::processRow() documentation.
ApiQueryBase | $module | Module in question |
stdClass | $row | Database result row |
array | &$data | Array to be included in the ApiResult |
array | &$hookData | Array that was be passed to the ApiQueryBaseBeforeQuery and ApiQueryBaseAfterQuery hooks, intended for inter-hook communication |
Implemented in MediaWiki\Api\ApiHookRunner.