MediaWiki
master
UserCanHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Permissions\Hook
;
4
5
use
MediaWiki\Title\Title
;
6
use
MediaWiki\User\User
;
7
15
interface
UserCanHook
{
29
public
function
onUserCan
( $title, $user, $action, &$result );
30
}
MediaWiki\Title\Title
Represents a title within MediaWiki.
Definition
Title.php:78
MediaWiki\User\User
internal since 1.36
Definition
User.php:93
MediaWiki\Permissions\Hook\UserCanHook
This is a hook handler interface, see docs/Hooks.md.
Definition
UserCanHook.php:15
MediaWiki\Permissions\Hook\UserCanHook\onUserCan
onUserCan( $title, $user, $action, &$result)
Use this hook to interrupt or advise the "user can do X to Y article" check.
MediaWiki\Permissions\Hook
Definition
GetUserPermissionsErrorsExpensiveHook.php:3
includes
Permissions
Hook
UserCanHook.php
Generated on Sun Nov 10 2024 14:25:03 for MediaWiki by
1.10.0