Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4146146
PageUndeleteHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PageUndeleteHook.php
View Options
<?php
namespace
MediaWiki\Page\Hook
;
use
MediaWiki\Page\ProperPageIdentity
;
use
MediaWiki\Permissions\Authority
;
use
StatusValue
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "PageUndelete" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
PageUndeleteHook
{
/**
* This hook is called before (part of) a page is undeleted.
*
* @since 1.37
*
* @param ProperPageIdentity $page Page being undeleted.
* @param Authority $performer Who is undeleting the page
* @param string $reason Reason the page is being undeleted
* @param bool $unsuppress Whether content is being unsuppressed or not
* @param string[] $timestamps Timestamps of revisions that we're going to undelete. If empty, means all revisions.
* @param int[] $fileVersions Versions of a file that we're going to undelete. If empty, means all versions.
* @param StatusValue $status Add any error here.
* @return bool|void True or no return value to continue; false to abort, which also requires adding
* a fatal error to $status.
*/
public
function
onPageUndelete
(
ProperPageIdentity
$page
,
Authority
$performer
,
string
$reason
,
bool
$unsuppress
,
array
$timestamps
,
array
$fileVersions
,
StatusValue
$status
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 19 2026, 17:54 (5 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e7/71/ffe997ac868c4e2fdc2cc0c2c395
Default Alt Text
PageUndeleteHook.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment