MediaWiki
REL1_37
PageDeleteHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Page\Hook
;
4
5
use
MediaWiki\Page\ProperPageIdentity
;
6
use
MediaWiki\Permissions\Authority
;
7
use
StatusValue
;
8
16
interface
PageDeleteHook
{
30
public
function
onPageDelete
(
31
ProperPageIdentity
$page,
32
Authority
$deleter,
33
string
$reason,
34
StatusValue
$status,
35
bool
$suppress
36
);
37
}
StatusValue
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition
StatusValue.php:43
MediaWiki\Page\Hook\PageDeleteHook
This is a hook handler interface, see docs/Hooks.md.
Definition
PageDeleteHook.php:16
MediaWiki\Page\Hook\PageDeleteHook\onPageDelete
onPageDelete(ProperPageIdentity $page, Authority $deleter, string $reason, StatusValue $status, bool $suppress)
This hook is called before a page is deleted.
MediaWiki\Page\ProperPageIdentity
Interface for objects representing a page that is (or could be, or used to be) an editable page on a ...
Definition
ProperPageIdentity.php:43
MediaWiki\Permissions\Authority
This interface represents the authority associated the current execution context, such as a web reque...
Definition
Authority.php:37
MediaWiki\Page\Hook
Definition
Article__MissingArticleConditionsHook.php:3
includes
page
Hook
PageDeleteHook.php
Generated on Fri Apr 5 2024 23:40:37 for MediaWiki by
1.9.8