MediaWiki
fundraising/REL1_35
RevisionLookup.php
Go to the documentation of this file.
1
<?php
23
namespace
MediaWiki\Revision
;
24
25
use
IDBAccessObject
;
26
use
MediaWiki\Linker\LinkTarget
;
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
97
public
function
getRevisionByTimestamp
(
98
LinkTarget
$title
,
99
string
$timestamp,
100
int
$flags = RevisionLookup::READ_NORMAL
101
): ?
RevisionRecord
;
102
114
public
function
getPreviousRevision
(
RevisionRecord
$rev, $flags = 0 );
115
127
public
function
getNextRevision
(
RevisionRecord
$rev, $flags = 0 );
128
139
public
function
getTimestampFromId
( $id, $flags = 0 );
140
154
public
function
getKnownCurrentRevision
(
Title
$title
, $revId = 0 );
155
164
public
function
getFirstRevision
(
165
LinkTarget
$title
,
166
int
$flags = IDBAccessObject::READ_NORMAL
167
): ?
RevisionRecord
;
168
169
}
170
175
class_alias( RevisionLookup::class,
'MediaWiki\Storage\RevisionLookup'
);
MediaWiki\Revision\RevisionRecord
Page revision base class.
Definition
RevisionRecord.php:46
Title
Represents a title within MediaWiki.
Definition
Title.php:42
IDBAccessObject
Interface for database access objects.
Definition
IDBAccessObject.php:57
MediaWiki\Linker\LinkTarget
Definition
LinkTarget.php:26
MediaWiki\Revision\RevisionLookup
Service for looking up page revisions.
Definition
RevisionLookup.php:38
MediaWiki\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.
MediaWiki\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.
MediaWiki\Revision\RevisionLookup\getFirstRevision
getFirstRevision(LinkTarget $title, int $flags=IDBAccessObject::READ_NORMAL)
Get the first revision of the page.
MediaWiki\Revision\RevisionLookup\getNextRevision
getNextRevision(RevisionRecord $rev, $flags=0)
Get next revision for this title.
MediaWiki\Revision\RevisionLookup\getKnownCurrentRevision
getKnownCurrentRevision(Title $title, $revId=0)
Load a revision based on a known page ID and current revision ID from the DB.
MediaWiki\Revision\RevisionLookup\getRevisionById
getRevisionById( $id, $flags=0)
Load a page revision from a given revision ID number.
MediaWiki\Revision\RevisionLookup\getRevisionByTimestamp
getRevisionByTimestamp(LinkTarget $title, string $timestamp, int $flags=RevisionLookup::READ_NORMAL)
Load the revision for the given title with the given timestamp.
MediaWiki\Revision\RevisionLookup\getPreviousRevision
getPreviousRevision(RevisionRecord $rev, $flags=0)
Get previous revision for this title.
MediaWiki\Revision\RevisionLookup\getTimestampFromId
getTimestampFromId( $id, $flags=0)
Get rev_timestamp from rev_id, without loading the rest of the row.
MediaWiki\Revision
Definition
ContributionsLookup.php:3
$title
$title
Definition
testCompression.php:38
includes
Revision
RevisionLookup.php
Generated on Mon Nov 25 2024 16:15:34 for MediaWiki by
1.10.0