Wikibase
MediaWiki Wikibase extension
|
A PropertyTermStoreWriter wrapping several other PropertyTermStoreWriters. More...
Public Member Functions | |
__construct (array $propertyTermStoreWriters) | |
storeTerms (PropertyId $propertyId, Fingerprint $terms) | |
deleteTerms (PropertyId $propertyId) | |
Private Attributes | |
$propertyTermStoreWriters | |
A PropertyTermStoreWriter wrapping several other PropertyTermStoreWriters.
Writes are multiplexed to all of them.
If a write (store or delete terms) throws an exception, writes to the remaining stores are still carried out, and the exception is re-thrown at the end. (If more than one store throws an exception, only the first one is thrown and the other ones will be dropped.)
Wikibase\Lib\Store\MultiPropertyTermStoreWriter::__construct | ( | array | $propertyTermStoreWriters | ) |
PropertyTermStoreWriter[] | $propertyTermStoreWriters |
Wikibase\Lib\Store\MultiPropertyTermStoreWriter::deleteTerms | ( | PropertyId | $propertyId | ) |
Wikibase\Lib\Store\MultiPropertyTermStoreWriter::storeTerms | ( | PropertyId | $propertyId, |
Fingerprint | $terms | ||
) |
|
private |