MediaWiki
REL1_39
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:46
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 a page that is (or could be, or used to be) an editable wiki page.
Definition
ProperPageIdentity.php:42
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 Mon Dec 16 2024 06:35:48 for MediaWiki by
1.10.0