Adapter turning a PropertyTermStoreWriter into an EntityTermStoreWriter.
More...
Adapter turning a PropertyTermStoreWriter into an EntityTermStoreWriter.
- Copyright
- GPL-2.0-or-later
◆ __construct()
◆ deleteTermsOfEntity()
Wikibase\Lib\Store\PropertyTermStoreWriterAdapter::deleteTermsOfEntity |
( |
EntityId |
$entityId | ) |
|
◆ saveTermsOfEntity()
Wikibase\Lib\Store\PropertyTermStoreWriterAdapter::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\PropertyTermStoreWriterAdapter::$store |
|
private |
The documentation for this class was generated from the following file: