|
MediaWiki master
|
Public Member Functions | |
| __construct (IConnectionProvider $dbProvider, string|false $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 20 of file BlockRestrictionStore.php.
| MediaWiki\Block\BlockRestrictionStore::__construct | ( | IConnectionProvider | $dbProvider, |
| string|false | $wikiId = WikiAwareEntity::LOCAL ) |
Definition at line 26 of file BlockRestrictionStore.php.
| MediaWiki\Block\BlockRestrictionStore::delete | ( | array | $restrictions | ) |
Delete the restrictions.
| Restriction[] | $restrictions |
Definition at line 196 of file BlockRestrictionStore.php.
| MediaWiki\Block\BlockRestrictionStore::deleteByBlockId | ( | $blockId | ) |
Delete the restrictions by block ID.
| int | int[] | $blockId |
Definition at line 217 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 236 of file BlockRestrictionStore.php.
| MediaWiki\Block\BlockRestrictionStore::insert | ( | array | $restrictions | ) |
Insert the restrictions into the database.
| Restriction[] | $restrictions |
Definition at line 64 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 41 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 271 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 93 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 155 of file BlockRestrictionStore.php.
References $success, MediaWiki\Block\BlockRestrictionStore\deleteByBlockId(), MediaWiki\Block\BlockRestrictionStore\setBlockId(), and MediaWiki\Block\BlockRestrictionStore\update().