MediaWiki
REL1_34
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'
);
MWException
MediaWiki exception.
Definition
MWException.php:26
Title
Represents a title within MediaWiki.
Definition
Title.php:42
MediaWiki\Revision\RevisionFactory
Service for constructing revision objects.
Definition
RevisionFactory.php:37
MediaWiki\Revision\RevisionFactory\newRevisionFromRow
newRevisionFromRow( $row, $queryFlags=0, Title $title=null)
Constructs a RevisionRecord given a database row and content slots.
MediaWiki\Revision\RevisionFactory\newMutableRevisionFromArray
newMutableRevisionFromArray(array $fields, $queryFlags=0, Title $title=null)
Constructs a new RevisionRecord based on the given associative array following the MW1....
MediaWiki\Revision\RevisionFactory\newRevisionFromArchiveRow
newRevisionFromArchiveRow( $row, $queryFlags=0, Title $title=null, array $overrides=[])
Make a fake revision object from an archive table row.
MediaWiki\Revision
Created by PhpStorm.
Definition
FallbackSlotRoleHandler.php:23
$title
$title
Definition
testCompression.php:34
includes
Revision
RevisionFactory.php
Generated on Fri Apr 5 2024 23:10:27 for MediaWiki by
1.9.8