Wikibase
MediaWiki Wikibase extension
|
Adapter turning an ItemTermStoreWriter into an EntityTermStoreWriter. More...
Public Member Functions | |
__construct (ItemTermStoreWriter $store) | |
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. | |
Private Attributes | |
$store | |
Adapter turning an ItemTermStoreWriter into an EntityTermStoreWriter.
Wikibase\Lib\Store\ItemTermStoreWriterAdapter::__construct | ( | ItemTermStoreWriter | $store | ) |
Wikibase\Lib\Store\ItemTermStoreWriterAdapter::deleteTermsOfEntity | ( | EntityId | $entityId | ) |
Deletes the terms of the provided entity from the term cache.
EntityId | $entityId |
Implements Wikibase\Lib\Store\EntityTermStoreWriter.
Wikibase\Lib\Store\ItemTermStoreWriterAdapter::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.
|
private |