MediaWiki
master
ArticleDeleteHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Page\Hook
;
4
5
use
MediaWiki\Status\Status
;
6
use
MediaWiki\User\User
;
7
use
WikiPage
;
8
17
interface
ArticleDeleteHook
{
33
public
function
onArticleDelete
(
WikiPage
$wikiPage,
User
$user, &$reason, &$error,
Status
&$status,
34
$suppress
35
);
36
}
MediaWiki\Status\Status
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition
Status.php:54
MediaWiki\User\User
internal since 1.36
Definition
User.php:93
WikiPage
Base representation for an editable wiki page.
Definition
WikiPage.php:85
MediaWiki\Page\Hook\ArticleDeleteHook
This is a hook handler interface, see docs/Hooks.md.
Definition
ArticleDeleteHook.php:17
MediaWiki\Page\Hook\ArticleDeleteHook\onArticleDelete
onArticleDelete(WikiPage $wikiPage, User $user, &$reason, &$error, Status &$status, $suppress)
This hook is called before an article is deleted.
MediaWiki\Page\Hook
Definition
Article__MissingArticleConditionsHook.php:3
includes
page
Hook
ArticleDeleteHook.php
Generated on Sun Dec 8 2024 06:24:49 for MediaWiki by
1.10.0