MediaWiki  1.34.0
SearchResult Class Reference

NOTE: this class is being refactored into an abstract base class. More...

Inheritance diagram for SearchResult:

Public Member Functions

 __construct ()
 

Static Public Member Functions

static newFromTitle ( $title, ISearchResultSet $parentSet=null)
 Return a new SearchResult and initializes it with a title. More...
 

Detailed Description

NOTE: this class is being refactored into an abstract base class.

If you extend this class directly, please implement all the methods declared in RevisionSearchResultTrait or extend RevisionSearchResult.

Once the hard-deprecation period is over (1.36?):

  • all methods declared in RevisionSearchResultTrait should be declared as abstract in this class
  • RevisionSearchResultTrait body should be moved to RevisionSearchResult and then removed without deprecation
  • caveat: all classes extending this one may potentially break if they did not properly implement all the methods.

Definition at line 38 of file SearchResult.php.

Constructor & Destructor Documentation

◆ __construct()

SearchResult::__construct ( )

Definition at line 42 of file SearchResult.php.

References wfDeprecated().

Member Function Documentation

◆ newFromTitle()

static SearchResult::newFromTitle (   $title,
ISearchResultSet  $parentSet = null 
)
static

Return a new SearchResult and initializes it with a title.

Parameters
Title$title
ISearchResultSet | null$parentSet
Returns
SearchResult

Definition at line 55 of file SearchResult.php.

References $title.

Referenced by SearchNearMatchResultSet\__construct().


The documentation for this class was generated from the following file: