MediaWiki master
|
Public Member Functions | |
__construct (IConnectionProvider $dbProvider, $wikiId=WikiAwareEntity::LOCAL) | |
delete (array $restrictions) | |
Delete the restrictions. | |
deleteByBlockId ( $blockId) | |
Delete the restrictions by block ID. | |
equals (array $a, array $b) | |
Check if two arrays of Restrictions are effectively equal. | |
insert (array $restrictions) | |
Insert the restrictions into the database. | |
loadByBlockId ( $blockId) | |
Retrieve the restrictions from the database by block ID. | |
setBlockId ( $blockId, array $restrictions) | |
Set the blockId on a set of restrictions and return a new set. | |
update (array $restrictions) | |
Update the list of restrictions. | |
updateByParentBlockId ( $parentBlockId, array $restrictions) | |
Updates the list of restrictions by parent ID. | |
Definition at line 34 of file BlockRestrictionStore.php.
MediaWiki\Block\BlockRestrictionStore::__construct | ( | IConnectionProvider | $dbProvider, |
$wikiId = WikiAwareEntity::LOCAL ) |
Definition at line 43 of file BlockRestrictionStore.php.
MediaWiki\Block\BlockRestrictionStore::delete | ( | array | $restrictions | ) |
Delete the restrictions.
Restriction[] | $restrictions |
Definition at line 213 of file BlockRestrictionStore.php.
MediaWiki\Block\BlockRestrictionStore::deleteByBlockId | ( | $blockId | ) |
Delete the restrictions by block ID.
int | int[] | $blockId |
Definition at line 234 of file BlockRestrictionStore.php.
Referenced by MediaWiki\Block\BlockRestrictionStore\updateByParentBlockId().
MediaWiki\Block\BlockRestrictionStore::equals | ( | array | $a, |
array | $b ) |
Check if two arrays of Restrictions are effectively equal.
This is a loose equality check as the restrictions do not have to contain the same block IDs.
Restriction[] | $a | |
Restriction[] | $b |
Definition at line 253 of file BlockRestrictionStore.php.
MediaWiki\Block\BlockRestrictionStore::insert | ( | array | $restrictions | ) |
Insert the restrictions into the database.
Restriction[] | $restrictions |
Definition at line 81 of file BlockRestrictionStore.php.
Referenced by MediaWiki\Block\BlockRestrictionStore\update().
MediaWiki\Block\BlockRestrictionStore::loadByBlockId | ( | $blockId | ) |
Retrieve the restrictions from the database by block ID.
int | int[] | $blockId |
Definition at line 58 of file BlockRestrictionStore.php.
MediaWiki\Block\BlockRestrictionStore::setBlockId | ( | $blockId, | |
array | $restrictions ) |
Set the blockId on a set of restrictions and return a new set.
int | $blockId | |
Restriction[] | $restrictions |
Definition at line 288 of file BlockRestrictionStore.php.
Referenced by MediaWiki\Block\BlockRestrictionStore\updateByParentBlockId().
MediaWiki\Block\BlockRestrictionStore::update | ( | array | $restrictions | ) |
Update the list of restrictions.
This method does not allow removing all of the restrictions. To do that, use ::deleteByBlockId().
Restriction[] | $restrictions |
Definition at line 110 of file BlockRestrictionStore.php.
References $success, and MediaWiki\Block\BlockRestrictionStore\insert().
Referenced by MediaWiki\Block\BlockRestrictionStore\updateByParentBlockId().
MediaWiki\Block\BlockRestrictionStore::updateByParentBlockId | ( | $parentBlockId, | |
array | $restrictions ) |
Updates the list of restrictions by parent ID.
int | $parentBlockId | |
Restriction[] | $restrictions |
Definition at line 172 of file BlockRestrictionStore.php.
References $success, MediaWiki\Block\BlockRestrictionStore\deleteByBlockId(), MediaWiki\Block\BlockRestrictionStore\setBlockId(), and MediaWiki\Block\BlockRestrictionStore\update().