MediaWiki Wikibase extension
Wikibase\Lib\Store\MultiPropertyTermStoreWriter Class Reference

A PropertyTermStoreWriter wrapping several other PropertyTermStoreWriters. More...

+ Inheritance diagram for Wikibase\Lib\Store\MultiPropertyTermStoreWriter:
+ Collaboration diagram for Wikibase\Lib\Store\MultiPropertyTermStoreWriter:

Public Member Functions

 __construct (array $propertyTermStoreWriters)
 storeTerms (PropertyId $propertyId, Fingerprint $terms)
 deleteTerms (PropertyId $propertyId)

Private Attributes


Detailed Description

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.)

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Store\MultiPropertyTermStoreWriter::__construct ( array  $propertyTermStoreWriters)

Member Function Documentation

◆ deleteTerms()

Wikibase\Lib\Store\MultiPropertyTermStoreWriter::deleteTerms ( PropertyId  $propertyId)

◆ storeTerms()

Wikibase\Lib\Store\MultiPropertyTermStoreWriter::storeTerms ( PropertyId  $propertyId,
Fingerprint  $terms 

Member Data Documentation

◆ $propertyTermStoreWriters


The documentation for this class was generated from the following file: