MediaWiki
REL1_41
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
use
Wikimedia\Rdbms\IReadableDatabase
;
28
38
interface
RevisionFactory
extends
IDBAccessObject
{
39
53
public
function
newRevisionFromRow
(
54
$row,
55
$queryFlags = self::READ_NORMAL,
56
PageIdentity
$page =
null
57
);
58
79
public
function
newRevisionFromArchiveRow
(
80
$row,
81
$queryFlags = self::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
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: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\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\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\newArchiveSelectQueryBuilder
newArchiveSelectQueryBuilder(IReadableDatabase $dbr)
Return a SelectQueryBuilder to allow querying archive table.
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.
Wikimedia\Rdbms\IReadableDatabase
A database connection without write operations.
Definition
IReadableDatabase.php:33
MediaWiki\Revision
Definition
ArchivedRevisionLookup.php:21
includes
Revision
RevisionFactory.php
Generated on Sat Nov 23 2024 08:24:38 for MediaWiki by
1.10.0