MediaWiki
master
RevisionFactory.php
Go to the documentation of this file.
1
<?php
23
namespace
MediaWiki\Revision
;
24
25
use
MediaWiki\Page\PageIdentity
;
26
use
Wikimedia\Rdbms\IDBAccessObject
;
27
use
Wikimedia\Rdbms\IReadableDatabase
;
28
38
interface
RevisionFactory
{
39
53
public
function
newRevisionFromRow
(
54
$row,
55
$queryFlags = IDBAccessObject::READ_NORMAL,
56
?
PageIdentity
$page =
null
57
);
58
79
public
function
newRevisionFromArchiveRow
(
80
$row,
81
$queryFlags = IDBAccessObject::READ_NORMAL,
82
?
PageIdentity
$page =
null
,
83
array $overrides = []
84
);
85
99
public
function
getArchiveQueryInfo
();
100
123
public
function
getQueryInfo
( $options = [] );
124
134
public
function
newSelectQueryBuilder
(
IReadableDatabase
$dbr ):
RevisionSelectQueryBuilder
;
135
145
public
function
newArchiveSelectQueryBuilder
(
IReadableDatabase
$dbr ):
ArchiveSelectQueryBuilder
;
146
155
public
function
isRevisionRow
( $row,
string
$table =
''
);
156
157
}
MediaWiki\Revision\ArchiveSelectQueryBuilder
Help and centralize querying archive table.
Definition
ArchiveSelectQueryBuilder.php:31
MediaWiki\Revision\RevisionSelectQueryBuilder
Help and centralize querying revision table.
Definition
RevisionSelectQueryBuilder.php:31
MediaWiki\Page\PageIdentity
Interface for objects (potentially) representing an editable wiki page.
Definition
PageIdentity.php:67
MediaWiki\Revision\RevisionFactory
Service for constructing RevisionRecord objects.
Definition
RevisionFactory.php:38
MediaWiki\Revision\RevisionFactory\getArchiveQueryInfo
getArchiveQueryInfo()
Return the tables, fields, and join conditions to be selected to create a new RevisionArchiveRecord o...
MediaWiki\Revision\RevisionFactory\newRevisionFromArchiveRow
newRevisionFromArchiveRow( $row, $queryFlags=IDBAccessObject::READ_NORMAL, ?PageIdentity $page=null, array $overrides=[])
Make a fake RevisionRecord object from an archive table row.
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\newSelectQueryBuilder
newSelectQueryBuilder(IReadableDatabase $dbr)
Return a SelectQueryBuilder to allow querying revision store.
MediaWiki\Revision\RevisionFactory\newRevisionFromRow
newRevisionFromRow( $row, $queryFlags=IDBAccessObject::READ_NORMAL, ?PageIdentity $page=null)
Constructs a RevisionRecord given a database row and content slots.
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\newArchiveSelectQueryBuilder
newArchiveSelectQueryBuilder(IReadableDatabase $dbr)
Return a SelectQueryBuilder to allow querying archive table.
Wikimedia\Rdbms\IDBAccessObject
Interface for database access objects.
Definition
IDBAccessObject.php:59
Wikimedia\Rdbms\IReadableDatabase
A database connection without write operations.
Definition
IReadableDatabase.php:37
MediaWiki\Revision
Definition
ArchivedRevisionLookup.php:21
includes
Revision
RevisionFactory.php
Generated on Sat Dec 14 2024 01:25:53 for MediaWiki by
1.10.0