Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Store\RevisionedUnresolvedRedirectException Class Reference

Exception indicating that an attempt was made to access a redirected EntityId without resolving the redirect first. More...

+ Inheritance diagram for Wikibase\Lib\Store\RevisionedUnresolvedRedirectException:
+ Collaboration diagram for Wikibase\Lib\Store\RevisionedUnresolvedRedirectException:

Public Member Functions

 __construct (EntityId $entityId, EntityId $redirectTargetId, $revisionId=0, $revisionTimestamp='')
 
 getRevisionId ()
 
 getRevisionTimestamp ()
 
- Public Member Functions inherited from Wikibase\DataModel\Services\Lookup\UnresolvedEntityRedirectException
 __construct (EntityId $entityId, EntityId $redirectTargetId, $message=null, ?Exception $previous=null)
 
 getRedirectTargetId ()
 Returns the ID of the entity referenced by the redirect.
 
- Public Member Functions inherited from Wikibase\DataModel\Services\Lookup\EntityLookupException
 __construct (EntityId $entityId, $message=null, ?Exception $previous=null)
 
 getEntityId ()
 

Private Attributes

 $revisionId
 
 $revisionTimestamp
 

Detailed Description

Exception indicating that an attempt was made to access a redirected EntityId without resolving the redirect first.

In the case of double-redirects on wikidata they are currently handled by bots asynchronously

See also
https://www.wikidata.org/wiki/Help:Redirects
Author
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Store\RevisionedUnresolvedRedirectException::__construct ( EntityId $entityId,
EntityId $redirectTargetId,
$revisionId = 0,
$revisionTimestamp = '' )
Parameters
EntityId$entityId
EntityId$redirectTargetIdThe ID of the target Entity of the redirect
int$revisionId
string$revisionTimestamp

Member Function Documentation

◆ getRevisionId()

Wikibase\Lib\Store\RevisionedUnresolvedRedirectException::getRevisionId ( )
Returns
int

◆ getRevisionTimestamp()

Wikibase\Lib\Store\RevisionedUnresolvedRedirectException::getRevisionTimestamp ( )
Returns
string

Member Data Documentation

◆ $revisionId

Wikibase\Lib\Store\RevisionedUnresolvedRedirectException::$revisionId
private

◆ $revisionTimestamp

Wikibase\Lib\Store\RevisionedUnresolvedRedirectException::$revisionTimestamp
private

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