MediaWiki  master
RevisionFactory.php
Go to the documentation of this file.
1 <?php
23 namespace MediaWiki\Revision;
24 
25 use IDBAccessObject;
27 
37 interface RevisionFactory extends IDBAccessObject {
38 
52  public function newRevisionFromRow(
53  $row,
54  $queryFlags = self::READ_NORMAL,
55  PageIdentity $page = null
56  );
57 
78  public function newRevisionFromArchiveRow(
79  $row,
80  $queryFlags = self::READ_NORMAL,
81  PageIdentity $page = null,
82  array $overrides = []
83  );
84 
96  public function getArchiveQueryInfo();
97 
119  public function getQueryInfo( $options = [] );
120 
121 }
122 
127 class_alias( RevisionFactory::class, 'MediaWiki\Storage\RevisionFactory' );
Page\PageIdentity
Interface for objects (potentially) representing an editable wiki page.
Definition: PageIdentity.php:64
MediaWiki\Revision\RevisionFactory\newRevisionFromArchiveRow
newRevisionFromArchiveRow( $row, $queryFlags=self::READ_NORMAL, PageIdentity $page=null, array $overrides=[])
Make a fake RevisionRecord object from an archive table row.
MediaWiki\Revision\RevisionFactory
Service for constructing RevisionRecord objects.
Definition: RevisionFactory.php:37
IDBAccessObject
Interface for database access objects.
Definition: IDBAccessObject.php:57
MediaWiki\Revision
Definition: ContributionsLookup.php:3
MediaWiki\Revision\RevisionFactory\getQueryInfo
getQueryInfo( $options=[])
Return the tables, fields, and join conditions to be selected to create a new RevisionStoreRecord obj...
MediaWiki\Revision\RevisionFactory\getArchiveQueryInfo
getArchiveQueryInfo()
Return the tables, fields, and join conditions to be selected to create a new RevisionArchiveRecord o...
MediaWiki\Revision\RevisionFactory\newRevisionFromRow
newRevisionFromRow( $row, $queryFlags=self::READ_NORMAL, PageIdentity $page=null)
Constructs a RevisionRecord given a database row and content slots.