For compliance with the new version of the table interface policy (T255803). This patch was created by an automated search & replace operation on the includes/ directory. Bug: T257789 Change-Id: I17e5e92e24c708ffc846945a136347670a3a20c7
24 lines
717 B
PHP
24 lines
717 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Hook;
|
|
|
|
use Wikimedia\Rdbms\IResultWrapper;
|
|
|
|
// phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps
|
|
/**
|
|
* @stable to implement
|
|
* @ingroup Hooks
|
|
*/
|
|
interface CategoryViewer__doCategoryQueryHook {
|
|
/**
|
|
* This hook is called after querying for pages to be displayed in a Category page.
|
|
* Use this hook to batch load any related data about the pages.
|
|
*
|
|
* @since 1.35
|
|
*
|
|
* @param string $type Category type, either 'page', 'file', or 'subcat'
|
|
* @param IResultWrapper $res Query result from Wikimedia\Rdbms\IDatabase::select()
|
|
* @return bool|void True or no return value to continue or false to abort
|
|
*/
|
|
public function onCategoryViewer__doCategoryQuery( $type, $res );
|
|
}
|