Wikibase
MediaWiki Wikibase extension
|
Sometimes we need an EntityTermStoreWriter that is not expected to be called. More...
Public Member Functions | |
saveTermsOfEntity (EntityDocument $entity) | |
Saves the terms of the provided entity in the term cache. | |
deleteTermsOfEntity (EntityId $entityId) | |
Deletes the terms of the provided entity from the term cache. | |
Sometimes we need an EntityTermStoreWriter that is not expected to be called.
The main use of this class is for ItemHandler and PropertyHandler which do things relating to both reading and writing. If they should only be used for reading, such as with non local entity sources, the service is still needed, but should not be called.
Wikibase\Lib\Store\ThrowingEntityTermStoreWriter::deleteTermsOfEntity | ( | EntityId | $entityId | ) |
Deletes the terms of the provided entity from the term cache.
EntityId | $entityId |
Implements Wikibase\Lib\Store\EntityTermStoreWriter.
Wikibase\Lib\Store\ThrowingEntityTermStoreWriter::saveTermsOfEntity | ( | EntityDocument | $entity | ) |
Saves the terms of the provided entity in the term cache.
EntityDocument | $entity | Must have an ID, and optionally any combination of terms as declared by the TermIndexEntry::TYPE_... constants. |
InvalidArgumentException | when $entity does not have an ID. |
Implements Wikibase\Lib\Store\EntityTermStoreWriter.