MediaWiki REL1_41
RevisionFactory.php
Go to the documentation of this file.
1<?php
23namespace MediaWiki\Revision;
24
28
39
53 public function newRevisionFromRow(
54 $row,
55 $queryFlags = self::READ_NORMAL,
56 PageIdentity $page = null
57 );
58
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
135
146
155 public function isRevisionRow( $row, string $table = '' );
156
157}
Help and centralize querying archive table.
Help and centralize querying revision table.
Interface for database access objects.
Interface for objects (potentially) representing an editable wiki page.
Service for constructing RevisionRecord objects.
getArchiveQueryInfo()
Return the tables, fields, and join conditions to be selected to create a new RevisionArchiveRecord o...
getQueryInfo( $options=[])
Return the tables, fields, and join conditions to be selected to create a new RevisionStoreRecord obj...
newSelectQueryBuilder(IReadableDatabase $dbr)
Return a SelectQueryBuilder to allow querying revision store.
isRevisionRow( $row, string $table='')
Determine whether the parameter is a row containing all the fields that RevisionFactory needs to crea...
newRevisionFromRow( $row, $queryFlags=self::READ_NORMAL, PageIdentity $page=null)
Constructs a RevisionRecord given a database row and content slots.
newArchiveSelectQueryBuilder(IReadableDatabase $dbr)
Return a SelectQueryBuilder to allow querying archive table.
newRevisionFromArchiveRow( $row, $queryFlags=self::READ_NORMAL, PageIdentity $page=null, array $overrides=[])
Make a fake RevisionRecord object from an archive table row.
A database connection without write operations.