MediaWiki
REL1_40
RevisionFactory.php
Go to the documentation of this file.
1
<?php
23
namespace
MediaWiki\Revision
;
24
25
use
IDBAccessObject
;
26
use
MediaWiki\Page\PageIdentity
;
27
37
interface
RevisionFactory
extends
IDBAccessObject
{
38
52
public
function
newRevisionFromRow
(
53
$row,
54
$queryFlags = self::READ_NORMAL,
55
PageIdentity
$page =
null
56
);
57
78
public
function
newRevisionFromArchiveRow
(
79
$row,
80
$queryFlags = self::READ_NORMAL,
81
PageIdentity
$page =
null
,
82
array $overrides = []
83
);
84
97
public
function
getArchiveQueryInfo
();
98
120
public
function
getQueryInfo
( $options = [] );
121
130
public
function
isRevisionRow
( $row,
string
$table =
''
);
131
132
}
IDBAccessObject
Interface for database access objects.
Definition
IDBAccessObject.php:57
MediaWiki\Page\PageIdentity
Interface for objects (potentially) representing an editable wiki page.
Definition
PageIdentity.php:65
MediaWiki\Revision\RevisionFactory
Service for constructing RevisionRecord objects.
Definition
RevisionFactory.php:37
MediaWiki\Revision\RevisionFactory\getArchiveQueryInfo
getArchiveQueryInfo()
Return the tables, fields, and join conditions to be selected to create a new RevisionArchiveRecord o...
MediaWiki\Revision\RevisionFactory\getQueryInfo
getQueryInfo( $options=[])
Return the tables, fields, and join conditions to be selected to create a new RevisionStoreRecord obj...
MediaWiki\Revision\RevisionFactory\isRevisionRow
isRevisionRow( $row, string $table='')
Determine whether the parameter is a row containing all the fields that RevisionFactory needs to crea...
MediaWiki\Revision\RevisionFactory\newRevisionFromRow
newRevisionFromRow( $row, $queryFlags=self::READ_NORMAL, PageIdentity $page=null)
Constructs a RevisionRecord given a database row and content slots.
MediaWiki\Revision\RevisionFactory\newRevisionFromArchiveRow
newRevisionFromArchiveRow( $row, $queryFlags=self::READ_NORMAL, PageIdentity $page=null, array $overrides=[])
Make a fake RevisionRecord object from an archive table row.
MediaWiki\Revision
Definition
ArchivedRevisionLookup.php:21
includes
Revision
RevisionFactory.php
Generated on Thu Jun 27 2024 14:04:01 for MediaWiki by
1.10.0