MediaWiki REL1_37
RevisionFactory.php
Go to the documentation of this file.
1<?php
23namespace MediaWiki\Revision;
24
27
38
52 public function newRevisionFromRow(
53 $row,
54 $queryFlags = self::READ_NORMAL,
55 PageIdentity $page = null
56 );
57
79 $row,
80 $queryFlags = self::READ_NORMAL,
81 PageIdentity $page = null,
82 array $overrides = []
83 );
84
96 public function getArchiveQueryInfo();
97
119 public function getQueryInfo( $options = [] );
120
129 public function isRevisionRow( $row, string $table = '' );
130
131}
132
137class_alias( RevisionFactory::class, 'MediaWiki\Storage\RevisionFactory' );
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...
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.
newRevisionFromArchiveRow( $row, $queryFlags=self::READ_NORMAL, PageIdentity $page=null, array $overrides=[])
Make a fake RevisionRecord object from an archive table row.