MediaWiki  master
ActionRestriction.php
Go to the documentation of this file.
1 <?php
24 
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
Definition: AbstractRestriction.php:23
$title
$title
Definition: testCompression.php:38
MediaWiki\Block\Restriction\AbstractRestriction
Definition: AbstractRestriction.php:25
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:48
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
Restriction for partial blocks of actions.
Definition: ActionRestriction.php:30