Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Store\Sql\WikiPageEntityRedirectLookup Class Reference
+ Inheritance diagram for Wikibase\Repo\Store\Sql\WikiPageEntityRedirectLookup:
+ Collaboration diagram for Wikibase\Repo\Store\Sql\WikiPageEntityRedirectLookup:

Public Member Functions

 __construct (EntityTitleStoreLookup $entityTitleLookup, EntityIdLookup $entityIdLookup, RepoDomainDb $repoDb)
 
 getRedirectIds (EntityId $targetId)
 Returns the IDs that redirect to (are aliases of) the given target entity.
 
 getRedirectForEntityId (EntityId $entityId, $forUpdate='')
 

Private Attributes

 $entityTitleLookup
 
 $entityIdLookup
 
 $repoDb
 

Additional Inherited Members

- Public Attributes inherited from Wikibase\DataModel\Services\Lookup\EntityRedirectTargetLookup
const FOR_UPDATE = 'for update'
 

Detailed Description

Author
Marius Hoch

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Store\Sql\WikiPageEntityRedirectLookup::__construct ( EntityTitleStoreLookup $entityTitleLookup,
EntityIdLookup $entityIdLookup,
RepoDomainDb $repoDb )

Member Function Documentation

◆ getRedirectForEntityId()

Wikibase\Repo\Store\Sql\WikiPageEntityRedirectLookup::getRedirectForEntityId ( EntityId $entityId,
$forUpdate = '' )
See also
EntityRedirectLookup::getRedirectForEntityId
Parameters
EntityId$entityId
string$forUpdate
Returns
EntityId|null The ID of the redirect target, or null if $entityId does not refer to a redirect
Exceptions
EntityRedirectLookupException

Implements Wikibase\DataModel\Services\Lookup\EntityRedirectTargetLookup.

◆ getRedirectIds()

Wikibase\Repo\Store\Sql\WikiPageEntityRedirectLookup::getRedirectIds ( EntityId $targetId)

Returns the IDs that redirect to (are aliases of) the given target entity.

Parameters
EntityId$targetId
Returns
EntityId[]
Exceptions
EntityRedirectLookupException

Implements Wikibase\DataModel\Services\Lookup\EntityRedirectLookup.

Member Data Documentation

◆ $entityIdLookup

Wikibase\Repo\Store\Sql\WikiPageEntityRedirectLookup::$entityIdLookup
private

◆ $entityTitleLookup

Wikibase\Repo\Store\Sql\WikiPageEntityRedirectLookup::$entityTitleLookup
private

◆ $repoDb

Wikibase\Repo\Store\Sql\WikiPageEntityRedirectLookup::$repoDb
private

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