MediaWiki
master
ActionRestriction.php
Go to the documentation of this file.
1
<?php
9
namespace
MediaWiki\Block\Restriction
;
10
11
use
MediaWiki\Title\Title
;
12
18
class
ActionRestriction
extends
AbstractRestriction
{
19
23
public
const
TYPE
=
'action'
;
24
28
public
const
TYPE_ID
= 3;
29
33
public
function
matches
(
Title
$title ) {
34
// Action blocks don't apply to particular titles. For example,
35
// if a block only blocked uploading, the target would still be
36
// allowed to edit any page.
37
return
false
;
38
}
39
40
}
MediaWiki\Block\Restriction\AbstractRestriction
Definition
AbstractRestriction.php:11
MediaWiki\Block\Restriction\ActionRestriction
Restriction for partial blocks of actions.
Definition
ActionRestriction.php:18
MediaWiki\Block\Restriction\ActionRestriction\TYPE
const TYPE
Definition
ActionRestriction.php:23
MediaWiki\Block\Restriction\ActionRestriction\matches
matches(Title $title)
Determine if a restriction matches a given title.1.33 bool
Definition
ActionRestriction.php:33
MediaWiki\Block\Restriction\ActionRestriction\TYPE_ID
const TYPE_ID
Definition
ActionRestriction.php:28
MediaWiki\Title\Title
Represents a title within MediaWiki.
Definition
Title.php:69
MediaWiki\Block\Restriction
Definition
AbstractRestriction.php:9
includes
Block
Restriction
ActionRestriction.php
Generated on Sat Apr 18 2026 00:05:47 for MediaWiki by
1.10.0