Wikibase
MediaWiki Wikibase extension
|
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. | |
Wikibase\Lib\Store\EntityTermStoreWriter::deleteTermsOfEntity | ( | EntityId | $entityId | ) |
Deletes the terms of the provided entity from the term cache.
EntityId | $entityId |
Implemented in Wikibase\Lib\Store\ItemTermStoreWriterAdapter, Wikibase\Lib\Store\NullEntityTermStoreWriter, Wikibase\Lib\Store\PropertyTermStoreWriterAdapter, and Wikibase\Lib\Store\ThrowingEntityTermStoreWriter.
Wikibase\Lib\Store\EntityTermStoreWriter::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. |
Implemented in Wikibase\Lib\Store\ItemTermStoreWriterAdapter, Wikibase\Lib\Store\NullEntityTermStoreWriter, Wikibase\Lib\Store\PropertyTermStoreWriterAdapter, and Wikibase\Lib\Store\ThrowingEntityTermStoreWriter.