|
MediaWiki master
|
Inherited by MediaWiki\Block\Restriction\AbstractRestriction.
Public Member Functions | |
| equals (Restriction $other) | |
| Determine if a restriction equals another restriction. | |
| getBlockId () | |
| Get the ID of the block. | |
| getHash () | |
| Create a unique hash of the block restriction based on the type and value. | |
| getValue () | |
| Get the value of the restriction. | |
| matches (Title $title) | |
| Determine if a restriction matches a given title. | |
| setBlockId ( $blockId) | |
| Set the ID of the block. | |
| toRow () | |
| Convert a restriction object into a row array for insertion. | |
Static Public Member Functions | |
| static | getType () |
| Get the type of restriction. | |
| static | getTypeId () |
| Get the ID of the type of restriction. | |
| static | newFromRow (\stdClass $row) |
| Create a new Restriction from a database row. | |
Definition at line 13 of file Restriction.php.
| MediaWiki\Block\Restriction\Restriction::equals | ( | Restriction | $other | ) |
Determine if a restriction equals another restriction.
| Restriction | $other |
Implemented in MediaWiki\Block\Restriction\AbstractRestriction.
| MediaWiki\Block\Restriction\Restriction::getBlockId | ( | ) |
Get the ID of the block.
Implemented in MediaWiki\Block\Restriction\AbstractRestriction.
| MediaWiki\Block\Restriction\Restriction::getHash | ( | ) |
Create a unique hash of the block restriction based on the type and value.
Implemented in MediaWiki\Block\Restriction\AbstractRestriction.
Referenced by MediaWiki\Block\Restriction\AbstractRestriction\equals().
|
static |
Get the type of restriction.
Implemented in MediaWiki\Block\Restriction\AbstractRestriction.
|
static |
Get the ID of the type of restriction.
This ID is used in the database.
Implemented in MediaWiki\Block\Restriction\AbstractRestriction.
| MediaWiki\Block\Restriction\Restriction::getValue | ( | ) |
Get the value of the restriction.
Implemented in MediaWiki\Block\Restriction\AbstractRestriction.
| MediaWiki\Block\Restriction\Restriction::matches | ( | Title | $title | ) |
Determine if a restriction matches a given title.
| Title | $title |
Implemented in MediaWiki\Block\Restriction\ActionRestriction, MediaWiki\Block\Restriction\NamespaceRestriction, and MediaWiki\Block\Restriction\PageRestriction.
|
static |
Create a new Restriction from a database row.
| \\stdClass | $row |
Implemented in MediaWiki\Block\Restriction\AbstractRestriction, and MediaWiki\Block\Restriction\PageRestriction.
| MediaWiki\Block\Restriction\Restriction::setBlockId | ( | $blockId | ) |
Set the ID of the block.
| int | $blockId |
Implemented in MediaWiki\Block\Restriction\AbstractRestriction.
| MediaWiki\Block\Restriction\Restriction::toRow | ( | ) |
Convert a restriction object into a row array for insertion.
Implemented in MediaWiki\Block\Restriction\AbstractRestriction.