ar_user, etc. * * @return RevisionRecord */ public function newRevisionFromArchiveRow( $row, $queryFlags = self::READ_NORMAL, PageIdentity $page = null, array $overrides = [] ); /** * Return the tables, fields, and join conditions to be selected to create * a new RevisionArchiveRecord object. * * @since 1.37, since 1.31 on RevisionStore * * @return array With three keys: * - tables: (string[]) to include in the `$table` to `IDatabase->select()` * - fields: (string[]) to include in the `$vars` to `IDatabase->select()` * - joins: (array) to include in the `$join_conds` to `IDatabase->select()` */ public function getArchiveQueryInfo(); /** * Return the tables, fields, and join conditions to be selected to create * a new RevisionStoreRecord object. * * MCR migration note: this replaced Revision::getQueryInfo * * If the format of fields returned changes in any way then the cache key provided by * self::getRevisionRowCacheKey should be updated. * * @since 1.37, since 1.31 on RevisionStore * * @param array $options Any combination of the following strings * - 'page': Join with the page table, and select fields to identify the page * - 'user': Join with the user table, and select the user name * * @return array[] With three keys: * - tables: (string[]) to include in the `$table` to `IDatabase->select()` * - fields: (string[]) to include in the `$vars` to `IDatabase->select()` * - joins: (array) to include in the `$join_conds` to `IDatabase->select()` * @phan-return array{tables:string[],fields:string[],joins:array} */ public function getQueryInfo( $options = [] ); /** * Determine whether the parameter is a row containing all the fields * that RevisionFactory needs to create a RevisionRecord from the row. * * @param mixed $row * @param string $table 'archive' or empty * @return bool */ public function isRevisionRow( $row, string $table = '' ); } /** * Retain the old class name for backwards compatibility. * @deprecated since 1.32 */ class_alias( RevisionFactory::class, 'MediaWiki\Storage\RevisionFactory' );