MediaWiki
master
ActionRestriction.php
Go to the documentation of this file.
1
<?php
23
namespace
MediaWiki\Block\Restriction
;
24
25
use
MediaWiki\Title\Title
;
26
32
class
ActionRestriction
extends
AbstractRestriction
{
33
37
public
const
TYPE
=
'action'
;
38
42
public
const
TYPE_ID
= 3;
43
47
public
function
matches
(
Title
$title ) {
48
// Action blocks don't apply to particular titles. For example,
49
// if a block only blocked uploading, the target would still be
50
// allowed to edit any page.
51
return
false
;
52
}
53
54
}
MediaWiki\Block\Restriction\AbstractRestriction
Definition
AbstractRestriction.php:25
MediaWiki\Block\Restriction\ActionRestriction
Restriction for partial blocks of actions.
Definition
ActionRestriction.php:32
MediaWiki\Block\Restriction\ActionRestriction\TYPE
const TYPE
Definition
ActionRestriction.php:37
MediaWiki\Block\Restriction\ActionRestriction\matches
matches(Title $title)
Determine if a restriction matches a given title.1.33 bool
Definition
ActionRestriction.php:47
MediaWiki\Block\Restriction\ActionRestriction\TYPE_ID
const TYPE_ID
Definition
ActionRestriction.php:42
MediaWiki\Title\Title
Represents a title within MediaWiki.
Definition
Title.php:78
MediaWiki\Block\Restriction
Definition
AbstractRestriction.php:23
includes
block
Restriction
ActionRestriction.php
Generated on Mon Oct 7 2024 08:22:54 for MediaWiki by
1.10.0