MediaWiki master
|
Public Member Functions | |
__construct (IConnectionProvider $dbProvider, RevisionStore $revisionStore) | |
getArchivedRevisionRecord (?PageIdentity $page, int $revId) | |
Return the archived revision with the given ID. | |
getLastRevisionId (PageIdentity $page) | |
Returns the ID of the latest deleted revision. | |
getPreviousRevisionRecord (PageIdentity $page, string $timestamp) | |
Return the most-previous revision, either live or deleted, against the deleted revision given by timestamp. | |
getRevisionRecordByTimestamp (PageIdentity $page, $timestamp) | |
Return a RevisionRecord object containing data for the deleted revision. | |
hasArchivedRevisions (PageIdentity $page) | |
Quick check if any archived revisions are present for the page. | |
listRevisions (PageIdentity $page, array $extraConds=[], ?int $limit=null) | |
List the revisions of the given page. | |
Definition at line 32 of file ArchivedRevisionLookup.php.
MediaWiki\Revision\ArchivedRevisionLookup::__construct | ( | IConnectionProvider | $dbProvider, |
RevisionStore | $revisionStore ) |
IConnectionProvider | $dbProvider | |
RevisionStore | $revisionStore |
Definition at line 44 of file ArchivedRevisionLookup.php.
MediaWiki\Revision\ArchivedRevisionLookup::getArchivedRevisionRecord | ( | ?PageIdentity | $page, |
int | $revId ) |
Return the archived revision with the given ID.
PageIdentity | null | $page | |
int | $revId |
Definition at line 103 of file ArchivedRevisionLookup.php.
MediaWiki\Revision\ArchivedRevisionLookup::getLastRevisionId | ( | PageIdentity | $page | ) |
Returns the ID of the latest deleted revision.
PageIdentity | $page |
Definition at line 199 of file ArchivedRevisionLookup.php.
References MediaWiki\Page\PageReference\getDBkey(), and MediaWiki\Page\PageReference\getNamespace().
MediaWiki\Revision\ArchivedRevisionLookup::getPreviousRevisionRecord | ( | PageIdentity | $page, |
string | $timestamp ) |
Return the most-previous revision, either live or deleted, against the deleted revision given by timestamp.
May produce unexpected results in case of history merges or other unusual time issues.
PageIdentity | $page | |
string | $timestamp |
Definition at line 148 of file ArchivedRevisionLookup.php.
MediaWiki\Revision\ArchivedRevisionLookup::getRevisionRecordByTimestamp | ( | PageIdentity | $page, |
$timestamp ) |
Return a RevisionRecord object containing data for the deleted revision.
PageIdentity | $page | |
string | $timestamp |
Definition at line 89 of file ArchivedRevisionLookup.php.
MediaWiki\Revision\ArchivedRevisionLookup::hasArchivedRevisions | ( | PageIdentity | $page | ) |
Quick check if any archived revisions are present for the page.
This says nothing about whether the page currently exists in the page table or not.
PageIdentity | $page |
Definition at line 218 of file ArchivedRevisionLookup.php.
MediaWiki\Revision\ArchivedRevisionLookup::listRevisions | ( | PageIdentity | $page, |
array | $extraConds = [], | ||
?int | $limit = null ) |
List the revisions of the given page.
Returns result wrapper with various archive table fields.
PageIdentity | $page | |
array | $extraConds | Extra conditions to be added to the query |
?int | $limit | The limit to be applied to the query, or null for no limit |
Definition at line 61 of file ArchivedRevisionLookup.php.
References MediaWiki\Page\PageReference\getDBkey(), MediaWiki\MediaWikiServices\getInstance(), and MediaWiki\Page\PageReference\getNamespace().