Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
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 (NumericPropertyId $propertyId, Fingerprint $terms)
 Updates the stored terms for the specified property.
 
 deleteTerms (NumericPropertyId $propertyId)
 

Private Attributes

 $propertyTermStoreWriters
 

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)
Parameters
PropertyTermStoreWriter[]$propertyTermStoreWriters

Member Function Documentation

◆ deleteTerms()

Wikibase\Lib\Store\MultiPropertyTermStoreWriter::deleteTerms ( NumericPropertyId $propertyId)
Exceptions
TermStoreException

Implements Wikibase\DataModel\Services\Term\PropertyTermStoreWriter.

◆ storeTerms()

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

Updates the stored terms for the specified property.

Exceptions
TermStoreException

Implements Wikibase\DataModel\Services\Term\PropertyTermStoreWriter.

Member Data Documentation

◆ $propertyTermStoreWriters

Wikibase\Lib\Store\MultiPropertyTermStoreWriter::$propertyTermStoreWriters
private

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