MediaWiki REL1_34
RevisionFactory.php
Go to the documentation of this file.
1<?php
23namespace MediaWiki\Revision;
24
25use MWException;
26use Title;
27
37interface 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
89 $row,
90 $queryFlags = 0,
91 Title $title = null,
92 array $overrides = []
93 );
94
95}
96
101class_alias( RevisionFactory::class, 'MediaWiki\Storage\RevisionFactory' );
MediaWiki exception.
Represents a title within MediaWiki.
Definition Title.php:42
Service for constructing revision objects.
newRevisionFromRow( $row, $queryFlags=0, Title $title=null)
Constructs a RevisionRecord given a database row and content slots.
newMutableRevisionFromArray(array $fields, $queryFlags=0, Title $title=null)
Constructs a new RevisionRecord based on the given associative array following the MW1....
newRevisionFromArchiveRow( $row, $queryFlags=0, Title $title=null, array $overrides=[])
Make a fake revision object from an archive table row.