MediaWiki  master
MovePageCheckPermissionsHook.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Hook;
4 
5 use Status;
6 use Title;
7 use User;
8 
26  public function onMovePageCheckPermissions( $oldTitle, $newTitle, $user,
27  $reason, $status
28  );
29 }
MediaWiki\Hook
Definition: ActionBeforeFormDisplayHook.php:3
MediaWiki\Hook\MovePageCheckPermissionsHook
Stable to implement.
Definition: MovePageCheckPermissionsHook.php:13
Status
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition: Status.php:44
MediaWiki\Hook\MovePageCheckPermissionsHook\onMovePageCheckPermissions
onMovePageCheckPermissions( $oldTitle, $newTitle, $user, $reason, $status)
Use this hook to specify whether the user is allowed to move the page.
Title
Represents a title within MediaWiki.
Definition: Title.php:41
User
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition: User.php:55