Wikibase
MediaWiki Wikibase extension
|
A PropertyTermStoreWriter
wrapping several other PropertyTermStoreWriter
s.
More...
Public Member Functions | |
__construct (array $propertyTermStoreWriters) | |
storeTerms (NumericPropertyId $propertyId, Fingerprint $terms) | |
Updates the stored terms for the specified property. | |
deleteTerms (NumericPropertyId $propertyId) | |
Private Attributes | |
$propertyTermStoreWriters | |
A PropertyTermStoreWriter
wrapping several other PropertyTermStoreWriter
s.
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 | ( | NumericPropertyId | $propertyId | ) |
TermStoreException |
Implements Wikibase\DataModel\Services\Term\PropertyTermStoreWriter.
Wikibase\Lib\Store\MultiPropertyTermStoreWriter::storeTerms | ( | NumericPropertyId | $propertyId, |
Fingerprint | $terms ) |
Updates the stored terms for the specified property.
TermStoreException |
Implements Wikibase\DataModel\Services\Term\PropertyTermStoreWriter.
|
private |