MediaWiki  master
PageUndeleteHook.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Page\Hook;
4 
7 use StatusValue;
8 
16 interface PageUndeleteHook {
32  public function onPageUndelete(
33  ProperPageIdentity $page,
34  Authority $performer,
35  string $reason,
36  bool $unsuppress,
37  array $timestamps,
38  array $fileVersions,
39  StatusValue $status
40  );
41 }
StatusValue
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition: StatusValue.php:43
Page::Hook\PageUndeleteHook
This is a hook handler interface, see docs/Hooks.md.
Definition: PageUndeleteHook.php:16
MediaWiki\Permissions\Authority
This interface represents the authority associated the current execution context, such as a web reque...
Definition: Authority.php:37
Page\ProperPageIdentity
Interface for objects representing a page that is (or could be, or used to be) an editable page on a ...
Definition: ProperPageIdentity.php:43
Page::Hook\PageUndeleteHook\onPageUndelete
onPageUndelete(ProperPageIdentity $page, Authority $performer, string $reason, bool $unsuppress, array $timestamps, array $fileVersions, StatusValue $status)
This hook is called before (part of) a page is undeleted.
MediaWiki\Page\Hook
Definition: Article__MissingArticleConditionsHook.php:3