Page MenuHomeWickedGov Phorge

ActionRestriction.php
No OneTemporary

Size
665 B
Referenced Files
None
Subscribers
None

ActionRestriction.php

<?php
/**
* A block restriction object of type 'Action'.
*
* @license GPL-2.0-or-later
* @file
*/
namespace MediaWiki\Block\Restriction;
use MediaWiki\Title\Title;
/**
* Restriction for partial blocks of actions.
*
* @since 1.37
*/
class ActionRestriction extends AbstractRestriction {
/**
* @inheritDoc
*/
public const TYPE = 'action';
/**
* @inheritDoc
*/
public const TYPE_ID = 3;
/**
* @inheritDoc
*/
public function matches( Title $title ) {
// Action blocks don't apply to particular titles. For example,
// if a block only blocked uploading, the target would still be
// allowed to edit any page.
return false;
}
}

File Metadata

Mime Type
text/x-php
Expires
Oct 2 2026, 18:22 (6 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
25/ad/78d08bd36396cb4242c324bd28b9
Default Alt Text
ActionRestriction.php (665 B)

Event Timeline