Wikibase
MediaWiki Wikibase extension
|
Service interface for looking up EntityIds given local wiki pages. More...
Public Member Functions | |
getEntityIds (array $titles) | |
Returns the list of EntityIds of the entities associated with the given page titles. | |
getEntityIdForTitle (Title $title) | |
Returns the ID of the entity stored on the page identified by $title. | |
Service interface for looking up EntityIds given local wiki pages.
Wikibase\Lib\Store\EntityIdLookup::getEntityIdForTitle | ( | Title | $title | ) |
Returns the ID of the entity stored on the page identified by $title.
Title | $title |
Implemented in Wikibase\Client\Store\Sql\PagePropsEntityIdLookup, Wikibase\DataAccess\ByTypeDispatchingEntityIdLookup, and Wikibase\Repo\Content\ContentHandlerEntityIdLookup.
Wikibase\Lib\Store\EntityIdLookup::getEntityIds | ( | array | $titles | ) |
Returns the list of EntityIds of the entities associated with the given page titles.
The resulting array uses the page IDs as keys.
Implementations may omit non-existing entities from the result. If they are included, they should have negative array keys.
Title[] | $titles |
StorageException |
Implemented in Wikibase\Client\Store\Sql\PagePropsEntityIdLookup, Wikibase\DataAccess\ByTypeDispatchingEntityIdLookup, and Wikibase\Repo\Content\ContentHandlerEntityIdLookup.