WikibaseLexeme
MediaWiki WikibaseLexeme extension
Loading...
Searching...
No Matches
Wikibase\Lexeme\DataAccess\Store\SenseStore Class Reference
+ Inheritance diagram for Wikibase\Lexeme\DataAccess\Store\SenseStore:
+ Collaboration diagram for Wikibase\Lexeme\DataAccess\Store\SenseStore:

Public Member Functions

 __construct (EntityStore $store, EntityRevisionLookup $lookup)
 
 assignFreshId (EntityDocument $sense)
 
 saveRedirect (EntityRedirect $redirect, $summary, User $user, $flags=0, $baseRevId=false, array $tags=[])
 
 userWasLastToEdit (User $user, EntityId $senseId, $lastRevId)
 
 updateWatchlist (User $user, EntityId $senseId, $watch)
 
 isWatching (User $user, EntityId $senseId)
 
 canCreateWithCustomId (EntityId $senseId)
 

Private Member Functions

 getLexemeRevision (SenseId $senseId, $revisionId=0)
 

Private Attributes

 $store
 
 $lookup
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lexeme\DataAccess\Store\SenseStore::__construct ( EntityStore $store,
EntityRevisionLookup $lookup )

Member Function Documentation

◆ assignFreshId()

Wikibase\Lexeme\DataAccess\Store\SenseStore::assignFreshId ( EntityDocument $sense)
See also
EntityStore::assignFreshId
Parameters
Sense$sense
Exceptions

DomainException

◆ canCreateWithCustomId()

Wikibase\Lexeme\DataAccess\Store\SenseStore::canCreateWithCustomId ( EntityId $senseId)
See also
EntityStore::canCreateWithCustomId
Parameters
SenseId$senseId
Returns
bool

◆ getLexemeRevision()

Wikibase\Lexeme\DataAccess\Store\SenseStore::getLexemeRevision ( SenseId $senseId,
$revisionId = 0 )
private
Parameters
SenseId$senseId
int$revisionId
Exceptions
StorageException
Returns
EntityRevision guaranteed to contain a Lexeme

◆ isWatching()

Wikibase\Lexeme\DataAccess\Store\SenseStore::isWatching ( User $user,
EntityId $senseId )
See also
EntityStore::isWatching
Parameters
User$user
SenseId$senseId
Returns
bool

◆ saveRedirect()

Wikibase\Lexeme\DataAccess\Store\SenseStore::saveRedirect ( EntityRedirect $redirect,
$summary,
User $user,
$flags = 0,
$baseRevId = false,
array $tags = [] )
See also
EntityStore::saveRedirect
Parameters
EntityRedirect$redirect
string$summary
User$user
int$flags
int | bool$baseRevId
Exceptions

DomainException always

Returns
never

◆ updateWatchlist()

Wikibase\Lexeme\DataAccess\Store\SenseStore::updateWatchlist ( User $user,
EntityId $senseId,
$watch )
See also
EntityStore::updateWatchlist
Parameters
User$user
SenseId$senseId
bool$watch

◆ userWasLastToEdit()

Wikibase\Lexeme\DataAccess\Store\SenseStore::userWasLastToEdit ( User $user,
EntityId $senseId,
$lastRevId )
See also
EntityStore::userWasLastToEdit
Parameters
User$user
SenseId$senseId
int$lastRevId
Returns
bool

Member Data Documentation

◆ $lookup

Wikibase\Lexeme\DataAccess\Store\SenseStore::$lookup
private

◆ $store

Wikibase\Lexeme\DataAccess\Store\SenseStore::$store
private

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