|
MediaWiki REL1_39
|

Public Member Functions | |
| 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. | |
| matches (\Title $title) | |
| Determine if a restriction matches a given title. | |
| setBlockId ( $blockId) | |
| Sets the id of the block. | |
| toRow () | |
| Convert a restriction object into a row array for insertion. | |
Static Public Member Functions | |
| static | getType () |
| Gets the type of restriction. | |
| static | getTypeId () |
| Gets the id of the type of restriction. | |
| static | newFromRow (\stdClass $row) |
| Creates a new Restriction from a database row. | |
Definition at line 25 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 | ( | ) |
Gets 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 |
Gets the type of restriction.
Implemented in MediaWiki\Block\Restriction\AbstractRestriction.
|
static |
Gets 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 | ( | ) |
Gets 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 |
Creates 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 | ) |
Sets 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.