Wikibase
MediaWiki Wikibase extension
|
Public Member Functions | |
saveTermsOfEntity (EntityDocument $entity) | |
Saves the terms of the provided entity in the term cache. More... | |
deleteTermsOfEntity (EntityId $entityId) | |
Deletes the terms of the provided entity from the term cache. More... | |
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\ThrowingEntityTermStoreWriter, Wikibase\Lib\Store\PropertyTermStoreWriterAdapter, Wikibase\Lib\Store\NullEntityTermStoreWriter, and Wikibase\Lib\Store\ItemTermStoreWriterAdapter.
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\ThrowingEntityTermStoreWriter, Wikibase\Lib\Store\PropertyTermStoreWriterAdapter, Wikibase\Lib\Store\NullEntityTermStoreWriter, and Wikibase\Lib\Store\ItemTermStoreWriterAdapter.