Adapter turning an ItemTermStoreWriter into an EntityTermStoreWriter.
More...
Adapter turning an ItemTermStoreWriter into an EntityTermStoreWriter.
- Copyright
- GPL-2.0-or-later
◆ __construct()
◆ deleteTermsOfEntity()
Wikibase\Lib\Store\ItemTermStoreWriterAdapter::deleteTermsOfEntity |
( |
EntityId |
$entityId | ) |
|
◆ saveTermsOfEntity()
Wikibase\Lib\Store\ItemTermStoreWriterAdapter::saveTermsOfEntity |
( |
EntityDocument |
$entity | ) |
|
Saves the terms of the provided entity in the term cache.
- Parameters
-
EntityDocument | $entity | Must have an ID, and optionally any combination of terms as declared by the TermIndexEntry::TYPE_... constants. |
- Exceptions
-
InvalidArgumentException | when $entity does not have an ID. |
- Returns
- boolean Success indicator
Implements Wikibase\Lib\Store\EntityTermStoreWriter.
◆ $store
Wikibase\Lib\Store\ItemTermStoreWriterAdapter::$store |
|
private |
The documentation for this class was generated from the following file: