MediaWiki REL1_35
ArticleDeleteHook.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Page\Hook;
4
5use Status;
6use User;
7use WikiPage;
8
29 public function onArticleDelete( $wikiPage, $user, &$reason, &$error, &$status,
30 $suppress
31 );
32}
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition Status.php:44
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition User.php:60
Class representing a MediaWiki article and history.
Definition WikiPage.php:51
onArticleDelete( $wikiPage, $user, &$reason, &$error, &$status, $suppress)
This hook is called before an article is deleted.