Debian Codegraph @

includes/Permissions/Hook/TitleQuickPermissionsHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Permissions\Hook;
4
5 use MediaWiki\Title\Title;
6 use 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 */
15 interface 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 }