MediaWiki REL1_40
SearchResult.php
Go to the documentation of this file.
1<?php
25
43
44 public function __construct() {
45 if ( self::class === static::class ) {
46 wfDeprecated( __METHOD__, '1.34' );
47 }
48 }
49
57 public static function newFromTitle( $title, ISearchResultSet $parentSet = null ) {
58 $result = new RevisionSearchResult( $title );
59 if ( $parentSet ) {
60 $parentSet->augmentResult( $result );
61 }
62 return $result;
63 }
64}
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Logs a warning that a deprecated feature was used.
trait RevisionSearchResultTrait
Transitional trait used to share the methods between SearchResult and RevisionSearchResult.
trait SearchResultTrait
Trait for SearchResult subclasses to share non-obvious behaviors or methods that rarely specialized.
Represents a title within MediaWiki.
Definition Title.php:82
SearchResult class based on the revision information.
NOTE: this class is being refactored into an abstract base class.
static newFromTitle( $title, ISearchResultSet $parentSet=null)
Return a new SearchResult and initializes it with a title.
A set of SearchEngine results.