Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4148852
PermissionStatusAuditHook.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
PermissionStatusAuditHook.php
View Options
<?php
namespace
MediaWiki\Permissions\Hook
;
use
MediaWiki\Linker\LinkTarget
;
use
MediaWiki\Permissions\PermissionStatus
;
use
MediaWiki\User\UserIdentity
;
/**
* This is a hook handler interface, see docs/Hooks.md
* Use the hook name "PermissionStatusAudit" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
PermissionStatusAuditHook
{
/**
* This hook is called from PermissionManager::getPermissionStatus()
* to make any permission status (even if it has no errors) available to consumers.
*
* @param LinkTarget $title Page in question
* @param UserIdentity $user User to check
* @param string $action Action being checked
* @param string $rigor One of PermissionManager::RIGOR_ constants
* @param PermissionStatus $status Permission check status. This is a read-only copy
* and can't be modified, use the 'GetUserPermissionsErrors' hook to report permission errors.
* @return void This hook must not abort, it must return no value
*
* @since 1.44
*/
public
function
onPermissionStatusAudit
(
LinkTarget
$title
,
UserIdentity
$user
,
string
$action
,
string
$rigor
,
PermissionStatus
$status
):
void
;
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 19 2026, 18:56 (6 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
05/3a/4f773c41e9585dafe23aa3a7e86f
Default Alt Text
PermissionStatusAuditHook.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment