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
3namespace MediaWiki\Permissions\Hook;
4
5use MediaWiki\Title\Title;
6use MediaWiki\User\User;
7
8/**
9 * This is a hook handler interface, see docs/Hooks.md.
10 * Use the hook name "TitleQuickPermissions" to register handlers implementing this interface.
11 *
12 * @stable to implement
13 * @ingroup Hooks
14 */
15interface TitleQuickPermissionsHook {
16    /**
17     * This hook is called from Title::checkQuickPermissions to add to
18     * or override the quick permissions check.
19     *
20     * @since 1.35
21     *
22     * @param Title $title Title being accessed
23     * @param User $user User performing the action
24     * @param string $action Action being performed
25     * @param array &$errors Array of errors
26     * @param bool $doExpensiveQueries Whether to do expensive database queries
27     * @param bool $short Whether to return immediately on first error
28     * @return bool|void True or no return value to continue or false to abort
29     */
30    public function onTitleQuickPermissions( $title, $user, $action, &$errors,
31        $doExpensiveQueries, $short
32    );
33}