MediaWiki REL1_31
RevisionFactory.php
Go to the documentation of this file.
1<?php
23namespace MediaWiki\Storage;
24
25use MWException;
26use Title;
27
36interface RevisionFactory {
37
53 public function newMutableRevisionFromArray( array $fields, $queryFlags = 0, Title $title = null );
54
68 public function newRevisionFromRow( $row, $queryFlags = 0, Title $title = null );
69
88 $row,
89 $queryFlags = 0,
90 Title $title = null,
91 array $overrides = []
92 );
93
94}
MediaWiki exception.
Represents a title within MediaWiki.
Definition Title.php:39
Service for constructing revision objects.
newRevisionFromRow( $row, $queryFlags=0, Title $title=null)
Constructs a RevisionRecord given a database row and content slots.
newRevisionFromArchiveRow( $row, $queryFlags=0, Title $title=null, array $overrides=[])
Make a fake revision object from an archive table row.
newMutableRevisionFromArray(array $fields, $queryFlags=0, Title $title=null)
Constructs a new RevisionRecord based on the given associative array following the MW1....