Updates for the removal of the Revision class itself and the various methods/hooks/variables removed in the process, including: - Update some documentation removing most references to the Revision class and updating the MCR migration notes to reflect the past tense for Revision methods. - Change some capitalization from "Revision" to "revision" to make it clear comments are about revisions in general, not the Revision class in particular. - Minor code tweaks including removing unused variables that were around for the old hooks that were removed, and removing the use of DeprecatablePropertyArray where no longer needed for anything. - Fix incorrect documentation for PageUpdater::getStatus(), the status value changed a while ago to have revision-record in addition to revision, and recently to only have the revision-record, but ironically PageUpdater was never updated. - Removed Parser::$mRevisionObject, used to be a Revision object and was deprecated in 1.35, missed earlier because it was no longer being set to Revision objects, always null. - Add RevisionRecord typehints in DummyLinker to match those in the corresponding Linker methods This should be a no-op in terms of functionality. Bug: T247143 Change-Id: I03bbb94fc29085855448780b1a5ad9063911ecc4
18 lines
411 B
PHP
18 lines
411 B
PHP
<?php
|
|
|
|
/**
|
|
* SearchResult class based on the revision information.
|
|
* This class is suited for search engines that do not store a specialized version of the searched
|
|
* content.
|
|
*/
|
|
class RevisionSearchResult extends SearchResult {
|
|
use RevisionSearchResultTrait;
|
|
|
|
/**
|
|
* @param Title|null $title
|
|
*/
|
|
public function __construct( $title ) {
|
|
$this->mTitle = $title;
|
|
$this->initFromTitle( $title );
|
|
}
|
|
}
|