MediaWiki  master
RevisionFactory.php
Go to the documentation of this file.
1 <?php
23 namespace MediaWiki\Revision;
24 
25 use IDBAccessObject;
26 use MWException;
27 use Title;
28 
38 interface RevisionFactory extends IDBAccessObject {
39 
55  public function newMutableRevisionFromArray(
56  array $fields,
57  $queryFlags = self::READ_NORMAL,
58  Title $title = null
59  );
60 
76  public function newRevisionFromRow(
77  $row,
78  $queryFlags = self::READ_NORMAL,
79  Title $title = null
80  );
81 
99  public function newRevisionFromArchiveRow(
100  $row,
101  $queryFlags = self::READ_NORMAL,
102  Title $title = null,
103  array $overrides = []
104  );
105 
106 }
107 
112 class_alias( RevisionFactory::class, 'MediaWiki\Storage\RevisionFactory' );
Revision\RevisionFactory\newMutableRevisionFromArray
newMutableRevisionFromArray(array $fields, $queryFlags=self::READ_NORMAL, Title $title=null)
Constructs a new RevisionRecord based on the given associative array following the MW1....
Revision\RevisionFactory\newRevisionFromRow
newRevisionFromRow( $row, $queryFlags=self::READ_NORMAL, Title $title=null)
Constructs a RevisionRecord given a database row and content slots.
Revision\RevisionFactory\newRevisionFromArchiveRow
newRevisionFromArchiveRow( $row, $queryFlags=self::READ_NORMAL, Title $title=null, array $overrides=[])
Make a fake revision object from an archive table row.
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
MWException
MediaWiki exception.
Definition: MWException.php:29
$title
$title
Definition: testCompression.php:38
Title
Represents a title within MediaWiki.
Definition: Title.php:42