Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Hook; |
4 | |
5 | use MediaWiki\Pager\HistoryPager; |
6 | use Wikimedia\Rdbms\IResultWrapper; |
7 | |
8 | // phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps |
9 | /** |
10 | * This is a hook handler interface, see docs/Hooks.md. |
11 | * Use the hook name "PageHistoryPager::doBatchLookups" to register handlers implementing this interface. |
12 | * |
13 | * @stable to implement |
14 | * @ingroup Hooks |
15 | */ |
16 | interface PageHistoryPager__doBatchLookupsHook { |
17 | /** |
18 | * This hook is called after the pager query was run, before any output is generated, |
19 | * to allow batch lookups for prefetching information needed for display. |
20 | * |
21 | * @since 1.35 |
22 | * |
23 | * @param HistoryPager $pager |
24 | * @param IResultWrapper $result A ResultWrapper representing the query result |
25 | * @return bool|void True or no return value to continue. False to skip the |
26 | * regular behavior of doBatchLookups(). |
27 | */ |
28 | public function onPageHistoryPager__doBatchLookups( $pager, $result ); |
29 | } |