MediaWiki  master
RevisionFactory.php
Go to the documentation of this file.
1 <?php
23 namespace MediaWiki\Revision;
24 
25 use IDBAccessObject;
27 use MWException;
28 
38 interface RevisionFactory extends IDBAccessObject {
39 
55  public function newMutableRevisionFromArray(
56  array $fields,
57  $queryFlags = self::READ_NORMAL,
58  PageIdentity $page = null
59  );
60 
74  public function newRevisionFromRow(
75  $row,
76  $queryFlags = self::READ_NORMAL,
77  PageIdentity $page = null
78  );
79 
97  public function newRevisionFromArchiveRow(
98  $row,
99  $queryFlags = self::READ_NORMAL,
100  PageIdentity $page = null,
101  array $overrides = []
102  );
103 
104 }
105 
110 class_alias( RevisionFactory::class, 'MediaWiki\Storage\RevisionFactory' );
Page\PageIdentity
Interface for objects (potentially) representing an editable wiki page.
Definition: PageIdentity.php:65
Revision\RevisionFactory
Service for constructing revision objects.
Definition: RevisionFactory.php:38
IDBAccessObject
Interface for database access objects.
Definition: IDBAccessObject.php:57
MediaWiki\Revision
Definition: ContributionsLookup.php:3
Revision\RevisionFactory\newRevisionFromRow
newRevisionFromRow( $row, $queryFlags=self::READ_NORMAL, PageIdentity $page=null)
Constructs a RevisionRecord given a database row and content slots.
MWException
MediaWiki exception.
Definition: MWException.php:29
Revision\RevisionFactory\newRevisionFromArchiveRow
newRevisionFromArchiveRow( $row, $queryFlags=self::READ_NORMAL, PageIdentity $page=null, array $overrides=[])
Make a fake revision object from an archive table row.
Revision\RevisionFactory\newMutableRevisionFromArray
newMutableRevisionFromArray(array $fields, $queryFlags=self::READ_NORMAL, PageIdentity $page=null)
Constructs a new RevisionRecord based on the given associative array following the MW1....