MediaWiki  1.34.0
RevisionLookup.php
Go to the documentation of this file.
1 <?php
23 namespace MediaWiki\Revision;
24 
25 use IDBAccessObject;
27 use Title;
28 
38 interface RevisionLookup extends IDBAccessObject {
39 
52  public function getRevisionById( $id, $flags = 0 );
53 
66  public function getRevisionByTitle( LinkTarget $linkTarget, $revId = 0, $flags = 0 );
67 
80  public function getRevisionByPageId( $pageId, $revId = 0, $flags = 0 );
81 
93  public function getPreviousRevision( RevisionRecord $rev, $flags = 0 );
94 
106  public function getNextRevision( RevisionRecord $rev, $flags = 0 );
107 
118  public function getTimestampFromId( $id, $flags = 0 );
119 
133  public function getKnownCurrentRevision( Title $title, $revId );
134 
135 }
136 
141 class_alias( RevisionLookup::class, 'MediaWiki\Storage\RevisionLookup' );
Revision\RevisionRecord
Page revision base class.
Definition: RevisionRecord.php:46
Revision\RevisionLookup\getPreviousRevision
getPreviousRevision(RevisionRecord $rev, $flags=0)
Get previous revision for this title.
Revision\RevisionLookup\getNextRevision
getNextRevision(RevisionRecord $rev, $flags=0)
Get next revision for this title.
IDBAccessObject
Interface for database access objects.
Definition: IDBAccessObject.php:55
Revision\RevisionLookup
Service for looking up page revisions.
Definition: RevisionLookup.php:38
MediaWiki\Revision
Created by PhpStorm.
Definition: FallbackSlotRoleHandler.php:23
Revision\RevisionLookup\getRevisionByPageId
getRevisionByPageId( $pageId, $revId=0, $flags=0)
Load either the current, or a specified, revision that's attached to a given page ID.
Revision\RevisionLookup\getTimestampFromId
getTimestampFromId( $id, $flags=0)
Get rev_timestamp from rev_id, without loading the rest of the row.
Revision\RevisionLookup\getRevisionById
getRevisionById( $id, $flags=0)
Load a page revision from a given revision ID number.
$title
$title
Definition: testCompression.php:34
Revision\RevisionLookup\getRevisionByTitle
getRevisionByTitle(LinkTarget $linkTarget, $revId=0, $flags=0)
Load either the current, or a specified, revision that's attached to a given link target.
Title
Represents a title within MediaWiki.
Definition: Title.php:42
Revision\RevisionLookup\getKnownCurrentRevision
getKnownCurrentRevision(Title $title, $revId)
Load a revision based on a known page ID and current revision ID from the DB.
MediaWiki\Linker\LinkTarget
Definition: LinkTarget.php:26