Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Store\RevisionBasedEntityRedirectTargetLookup Class Reference
+ Inheritance diagram for Wikibase\Lib\Store\RevisionBasedEntityRedirectTargetLookup:
+ Collaboration diagram for Wikibase\Lib\Store\RevisionBasedEntityRedirectTargetLookup:

Public Member Functions

 __construct (EntityRevisionLookup $entityRevisionLookup)
 
 getRedirectForEntityId (EntityId $entityId, $forUpdate='')
 Returns the redirect target associated with the given redirect ID.
Since
2.0
Parameters
EntityId$entityId
string$forUpdateIf EntityRedirectTargetLookup::FOR_UPDATE is given the redirect will be determined from the canonical master database.
Returns
EntityId|null The ID of the redirect target, or null if $entityId does not refer to a redirect.
Exceptions
EntityRedirectLookupException

 

Private Attributes

 $entityRevisionLookup
 

Additional Inherited Members

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

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Store\RevisionBasedEntityRedirectTargetLookup::__construct ( EntityRevisionLookup $entityRevisionLookup)

Member Function Documentation

◆ getRedirectForEntityId()

Wikibase\Lib\Store\RevisionBasedEntityRedirectTargetLookup::getRedirectForEntityId ( EntityId $entityId,
$forUpdate = '' )

Returns the redirect target associated with the given redirect ID.

Since
2.0
Parameters
EntityId$entityId
string$forUpdateIf EntityRedirectTargetLookup::FOR_UPDATE is given the redirect will be determined from the canonical master database.
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.

Member Data Documentation

◆ $entityRevisionLookup

Wikibase\Lib\Store\RevisionBasedEntityRedirectTargetLookup::$entityRevisionLookup
private

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