Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace MediaWiki\Page\Hook;
4
5use Content;
6use ManualLogEntry;
7use MediaWiki\User\User;
8use WikiPage;
9
10/**
11 * This is a hook handler interface, see docs/Hooks.md.
12 * Use the hook name "ArticleDeleteComplete" to register handlers implementing this interface.
13 *
14 * @ingroup Hooks
15 * @deprecated since 1.37, use PageDeleteCompleteHook instead. The new hook uses more modern typehints and replaces
16 * the Content object with a RevisionRecord.
17 */
18interface ArticleDeleteCompleteHook {
19    /**
20     * This hook is called after an article is deleted.
21     *
22     * @since 1.35
23     *
24     * @param WikiPage $wikiPage WikiPage that was deleted.
25     *   This object represents state before deletion (e.g. $wikiPage->exists() will return true).
26     * @param User $user User that deleted the article
27     * @param string $reason Reason the article was deleted
28     * @param int $id ID of the article that was deleted
29     * @param Content|null $content Content of the deleted page (or null, when deleting a broken page)
30     * @param ManualLogEntry $logEntry ManualLogEntry used to record the deletion
31     * @param int $archivedRevisionCount Number of revisions archived during the deletion
32     * @return bool|void True or no return value to continue or false to abort
33     */
34    public function onArticleDeleteComplete( $wikiPage, $user, $reason, $id,
35        $content, $logEntry, $archivedRevisionCount
36    );
37}