Wikibase
MediaWiki Wikibase extension
Wikibase\Lib\Store\EntityTermStoreWriter Interface Reference
+ Inheritance diagram for Wikibase\Lib\Store\EntityTermStoreWriter:

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...
 

Detailed Description

Member Function Documentation

◆ deleteTermsOfEntity()

Wikibase\Lib\Store\EntityTermStoreWriter::deleteTermsOfEntity ( EntityId  $entityId)

◆ saveTermsOfEntity()

Wikibase\Lib\Store\EntityTermStoreWriter::saveTermsOfEntity ( EntityDocument  $entity)

Saves the terms of the provided entity in the term cache.

Parameters
EntityDocument$entityMust have an ID, and optionally any combination of terms as declared by the TermIndexEntry::TYPE_... constants.
Exceptions
InvalidArgumentExceptionwhen $entity does not have an ID.
Returns
boolean Success indicator

Implemented in Wikibase\Lib\Store\Sql\TermSqlIndex, Wikibase\Lib\Store\ItemTermStoreWriterAdapter, Wikibase\Lib\Store\PropertyTermStoreWriterAdapter, Wikibase\Lib\Store\NullTermIndex, Wikibase\Lib\Store\ThrowingEntityTermStoreWriter, and Wikibase\Lib\Store\NullEntityTermStoreWriter.


The documentation for this interface was generated from the following file: