MediaWiki  master
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' );
newRevisionFromArchiveRow( $row, $queryFlags=0, Title $title=null, array $overrides=[])
Make a fake revision object from an archive table row.
Created by PhpStorm.
newMutableRevisionFromArray(array $fields, $queryFlags=0, Title $title=null)
Constructs a new RevisionRecord based on the given associative array following the MW1...
Service for constructing revision objects.
newRevisionFromRow( $row, $queryFlags=0, Title $title=null)
Constructs a RevisionRecord given a database row and content slots.