MediaWiki REL1_37
|
Restriction for partial blocks of actions. More...
Public Member Functions | ||||
matches (\Title $title) | ||||
Determine if a restriction matches a given title.
| ||||
Public Member Functions inherited from MediaWiki\Block\Restriction\AbstractRestriction | ||||
__construct ( $blockId, $value) | ||||
Create Restriction. | ||||
equals (Restriction $other) | ||||
Determine if a restriction equals another restriction.
| ||||
getBlockId () | ||||
Gets the id of the block.
| ||||
getHash () | ||||
Create a unique hash of the block restriction based on the type and value.
| ||||
getValue () | ||||
Gets the value of the restriction.
| ||||
setBlockId ( $blockId) | ||||
Sets the id of the block.
| ||||
toRow () | ||||
Convert a restriction object into a row array for insertion.
| ||||
Public Attributes | |
const | TYPE = 'action' |
const | TYPE_ID = 3 |
Public Attributes inherited from MediaWiki\Block\Restriction\AbstractRestriction | |
const | TYPE = '' |
String constant identifying the type of restriction. | |
const | TYPE_ID = 0 |
Numeric type identifier. | |
Additional Inherited Members | ||||
Static Public Member Functions inherited from MediaWiki\Block\Restriction\AbstractRestriction | ||||
static | getType () | |||
Gets the type of restriction.
| ||||
static | getTypeId () | |||
Gets the id of the type of restriction.This id is used in the database.
| ||||
static | newFromRow (\stdClass $row) | |||
Creates a new Restriction from a database row.
| ||||
Protected Attributes inherited from MediaWiki\Block\Restriction\AbstractRestriction | ||||
int | $blockId | |||
int | $value | |||
Restriction for partial blocks of actions.
Definition at line 30 of file ActionRestriction.php.
MediaWiki\Block\Restriction\ActionRestriction::matches | ( | \Title | $title | ) |
Determine if a restriction matches a given title.
\\Title | $title |
Implements MediaWiki\Block\Restriction\Restriction.
Definition at line 45 of file ActionRestriction.php.
const MediaWiki\Block\Restriction\ActionRestriction::TYPE = 'action' |
Definition at line 35 of file ActionRestriction.php.
const MediaWiki\Block\Restriction\ActionRestriction::TYPE_ID = 3 |
Definition at line 40 of file ActionRestriction.php.