MediaWiki
REL1_39
PageUndeleteHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Page\Hook
;
4
5
use
MediaWiki\Page\ProperPageIdentity
;
6
use
MediaWiki\Permissions\Authority
;
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:46
MediaWiki\Page\Hook\PageUndeleteHook
This is a hook handler interface, see docs/Hooks.md.
Definition
PageUndeleteHook.php:16
MediaWiki\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\ProperPageIdentity
Interface for a page that is (or could be, or used to be) an editable wiki page.
Definition
ProperPageIdentity.php:42
MediaWiki\Permissions\Authority
This interface represents the authority associated the current execution context, such as a web reque...
Definition
Authority.php:37
MediaWiki\Page\Hook
Definition
Article__MissingArticleConditionsHook.php:3
includes
page
Hook
PageUndeleteHook.php
Generated on Mon Dec 16 2024 06:35:48 for MediaWiki by
1.10.0