MediaWiki
REL1_35
ArticleDeleteHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Page\Hook
;
4
5
use
Status
;
6
use
User
;
7
use
WikiPage
;
8
13
interface
ArticleDeleteHook
{
29
public
function
onArticleDelete
( $wikiPage, $user, &$reason, &$error, &$status,
30
$suppress
31
);
32
}
Status
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition
Status.php:44
User
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition
User.php:60
WikiPage
Class representing a MediaWiki article and history.
Definition
WikiPage.php:51
MediaWiki\Page\Hook\ArticleDeleteHook
Stable to implement.
Definition
ArticleDeleteHook.php:13
MediaWiki\Page\Hook\ArticleDeleteHook\onArticleDelete
onArticleDelete( $wikiPage, $user, &$reason, &$error, &$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 Sat Apr 6 2024 00:07:33 for MediaWiki by
1.9.8