Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Content\ContentHandlerEntityIdLookup Class Reference

Implementation of EntityIdLookup that uses content handler. More...

+ Inheritance diagram for Wikibase\Repo\Content\ContentHandlerEntityIdLookup:
+ Collaboration diagram for Wikibase\Repo\Content\ContentHandlerEntityIdLookup:

Public Member Functions

 __construct (EntityContentFactory $entityContentFactory, HookContainer $hookContainer)
 
 getEntityIdForTitle (Title $title)
 Returns the ID of the entity associated with the given page title.
 
 getEntityIds (array $titles)
 

Private Attributes

 $entityContentFactory
 
 $hookContainer
 

Detailed Description

Implementation of EntityIdLookup that uses content handler.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Content\ContentHandlerEntityIdLookup::__construct ( EntityContentFactory $entityContentFactory,
HookContainer $hookContainer )

Member Function Documentation

◆ getEntityIdForTitle()

Wikibase\Repo\Content\ContentHandlerEntityIdLookup::getEntityIdForTitle ( Title $title)

Returns the ID of the entity associated with the given page title.

Note
There is no guarantee that the EntityId returned by this method refers to an existing entity.

Implements Wikibase\Lib\Store\EntityIdLookup.

◆ getEntityIds()

Wikibase\Repo\Content\ContentHandlerEntityIdLookup::getEntityIds ( array $titles)
See also
EntityIdLookup::getEntityIds
Note
the current implementation skips non-existing entities, but there is no guarantee that this will always be the case.
Parameters
Title[]$titles
Exceptions
StorageException
Returns
EntityId[] Entity IDs, keyed by page IDs.

Implements Wikibase\Lib\Store\EntityIdLookup.

Member Data Documentation

◆ $entityContentFactory

Wikibase\Repo\Content\ContentHandlerEntityIdLookup::$entityContentFactory
private

◆ $hookContainer

Wikibase\Repo\Content\ContentHandlerEntityIdLookup::$hookContainer
private

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