MediaWiki
master
UserCanHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Permissions\Hook
;
4
5
use
Title
;
6
use
User
;
7
15
interface
UserCanHook
{
29
public
function
onUserCan
(
$title
, $user,
$action
, &$result );
30
}
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\UserCanHook
This is a hook handler interface, see docs/Hooks.md.
Definition:
UserCanHook.php:15
MediaWiki\Permissions\Hook
Definition:
GetUserPermissionsErrorsExpensiveHook.php:3
$title
$title
Definition:
testCompression.php:38
MediaWiki\$action
string $action
Cache what action this request is.
Definition:
MediaWiki.php:45
Title
Represents a title within MediaWiki.
Definition:
Title.php:46
User
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition:
User.php:56
includes
Permissions
Hook
UserCanHook.php
Generated on Sat Jan 16 2021 02:09:59 for MediaWiki by
1.8.19