MediaWiki REL1_33
RevisionLookup.php
Go to the documentation of this file.
1<?php
23namespace MediaWiki\Revision;
24
27use Title;
28
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
92 public function getPreviousRevision( RevisionRecord $rev, Title $title = null );
93
104 public function getNextRevision( RevisionRecord $rev, Title $title = null );
105
119 public function getKnownCurrentRevision( Title $title, $revId );
120
121}
122
127class_alias( RevisionLookup::class, 'MediaWiki\Storage\RevisionLookup' );
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
Page revision base class.
Represents a title within MediaWiki.
Definition Title.php:40
presenting them properly to the user as errors is done by the caller return true use this to change the list i e etc $rev
Definition hooks.txt:1779
Interface for database access objects.
Service for looking up page revisions.
getRevisionByPageId( $pageId, $revId=0, $flags=0)
Load either the current, or a specified, revision that's attached to a given page ID.
getKnownCurrentRevision(Title $title, $revId)
Load a revision based on a known page ID and current revision ID from the DB.
getRevisionByTitle(LinkTarget $linkTarget, $revId=0, $flags=0)
Load either the current, or a specified, revision that's attached to a given link target.
getNextRevision(RevisionRecord $rev, Title $title=null)
Get next revision for this title.
getRevisionById( $id, $flags=0)
Load a page revision from a given revision ID number.
getPreviousRevision(RevisionRecord $rev, Title $title=null)
Get previous revision for this title.