MediaWiki REL1_35
UserCanHook.php
Go to the documentation of this file.
1<?php
2
4
5use Title;
6use User;
7
12interface UserCanHook {
26 public function onUserCan( $title, $user, $action, &$result );
27}
Represents a title within MediaWiki.
Definition Title.php:42
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition User.php:60
onUserCan( $title, $user, $action, &$result)
Use this hook to interrupt or advise the "user can do X to Y article" check.