MediaWiki  1.34.0
RevisionFactory.php
Go to the documentation of this file.
1 <?php
23 namespace MediaWiki\Revision;
24 
25 use MWException;
26 use Title;
27 
37 interface RevisionFactory {
38 
54  public function newMutableRevisionFromArray( array $fields, $queryFlags = 0, Title $title = null );
55 
69  public function newRevisionFromRow( $row, $queryFlags = 0, Title $title = null );
70 
88  public function newRevisionFromArchiveRow(
89  $row,
90  $queryFlags = 0,
91  Title $title = null,
92  array $overrides = []
93  );
94 
95 }
96 
101 class_alias( RevisionFactory::class, 'MediaWiki\Storage\RevisionFactory' );
Revision\RevisionFactory
Service for constructing revision objects.
Definition: RevisionFactory.php:37
Revision\RevisionFactory\newRevisionFromRow
newRevisionFromRow( $row, $queryFlags=0, Title $title=null)
Constructs a RevisionRecord given a database row and content slots.
MediaWiki\Revision
Created by PhpStorm.
Definition: FallbackSlotRoleHandler.php:23
MWException
MediaWiki exception.
Definition: MWException.php:26
$title
$title
Definition: testCompression.php:34
Revision\RevisionFactory\newMutableRevisionFromArray
newMutableRevisionFromArray(array $fields, $queryFlags=0, Title $title=null)
Constructs a new RevisionRecord based on the given associative array following the MW1....
Title
Represents a title within MediaWiki.
Definition: Title.php:42
Revision\RevisionFactory\newRevisionFromArchiveRow
newRevisionFromArchiveRow( $row, $queryFlags=0, Title $title=null, array $overrides=[])
Make a fake revision object from an archive table row.