MediaWiki
REL1_35
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
12
interface
UserCanHook
{
26
public
function
onUserCan
(
$title
, $user, $action, &$result );
27
}
Title
Represents a title within MediaWiki.
Definition
Title.php:42
User
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition
User.php:60
MediaWiki\Permissions\Hook\UserCanHook
Stable to implement.
Definition
UserCanHook.php:12
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
$title
$title
Definition
testCompression.php:38
includes
Permissions
Hook
UserCanHook.php
Generated on Sat Apr 6 2024 00:07:39 for MediaWiki by
1.9.8