Wikibase
MediaWiki Wikibase extension
Wikibase\Lib\Store\NullEntityTermStoreWriter Class Reference
+ Inheritance diagram for Wikibase\Lib\Store\NullEntityTermStoreWriter:
+ Collaboration diagram for Wikibase\Lib\Store\NullEntityTermStoreWriter:

Public Member Functions

 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
More...
 
 deleteTermsOfEntity (EntityId $entityId)
 Deletes the terms of the provided entity from the term cache.
Parameters
EntityId$entityId
Returns
boolean Success indicator
More...
 

Detailed Description

Member Function Documentation

◆ deleteTermsOfEntity()

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

Deletes the terms of the provided entity from the term cache.

Parameters
EntityId$entityId
Returns
boolean Success indicator

Implements Wikibase\Lib\Store\EntityTermStoreWriter.

◆ saveTermsOfEntity()

Wikibase\Lib\Store\NullEntityTermStoreWriter::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

Implements Wikibase\Lib\Store\EntityTermStoreWriter.


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