Wikibase
MediaWiki Wikibase extension
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, ILoadBalancer $loadBalancer)
 
 getRedirectIds (EntityId $targetId)
 Returns the IDs that redirect to (are aliases of) the given target entity. More...
 
 getRedirectForEntityId (EntityId $entityId, $forUpdate='')
 

Private Attributes

 $entityTitleLookup
 
 $entityIdLookup
 
 $loadBalancer
 

Detailed Description

Author
Marius Hoch

Constructor & Destructor Documentation

◆ __construct()

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

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

◆ 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

Member Data Documentation

◆ $entityIdLookup

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

◆ $entityTitleLookup

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

◆ $loadBalancer

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

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