MediaWiki
REL1_39
ActionRestriction.php
Go to the documentation of this file.
1
<?php
23
namespace
MediaWiki\Block\Restriction
;
24
30
class
ActionRestriction
extends
AbstractRestriction
{
31
35
public
const
TYPE
=
'action'
;
36
40
public
const
TYPE_ID
= 3;
41
45
public
function
matches
( \
Title
$title
) {
46
// Action blocks don't apply to particular titles. For example,
47
// if a block only blocked uploading, the target would still be
48
// allowed to edit any page.
49
return
false
;
50
}
51
52
}
MediaWiki\Block\Restriction\AbstractRestriction
Definition
AbstractRestriction.php:25
MediaWiki\Block\Restriction\ActionRestriction
Restriction for partial blocks of actions.
Definition
ActionRestriction.php:30
MediaWiki\Block\Restriction\ActionRestriction\TYPE
const TYPE
Definition
ActionRestriction.php:35
MediaWiki\Block\Restriction\ActionRestriction\TYPE_ID
const TYPE_ID
Definition
ActionRestriction.php:40
MediaWiki\Block\Restriction\ActionRestriction\matches
matches(\Title $title)
Determine if a restriction matches a given title.1.33 bool
Definition
ActionRestriction.php:45
Title
Represents a title within MediaWiki.
Definition
Title.php:49
MediaWiki\Block\Restriction
Definition
AbstractRestriction.php:23
$title
$title
Definition
testCompression.php:38
includes
block
Restriction
ActionRestriction.php
Generated on Mon Dec 23 2024 06:22:54 for MediaWiki by
1.10.0