MediaWiki
1.34.0
SearchResult.php
Go to the documentation of this file.
1
<?php
38
class
SearchResult
{
39
use
SearchResultTrait
;
40
use
RevisionSearchResultTrait
;
41
42
public
function
__construct
() {
43
if
( self::class === static::class ) {
44
wfDeprecated
( __METHOD__,
'1.34'
);
45
}
46
}
47
55
public
static
function
newFromTitle
(
$title
,
ISearchResultSet
$parentSet =
null
) {
56
$result =
new
RevisionSearchResult
(
$title
);
57
if
( $parentSet ) {
58
$parentSet->augmentResult( $result );
59
}
60
return
$result;
61
}
62
}
SearchResultTrait
trait SearchResultTrait
Trait for SearchResult subclasses to share non-obvious behaviors or methods that rarely specialized.
Definition:
SearchResultTrait.php:7
SearchResult\newFromTitle
static newFromTitle( $title, ISearchResultSet $parentSet=null)
Return a new SearchResult and initializes it with a title.
Definition:
SearchResult.php:55
SearchResult\__construct
__construct()
Definition:
SearchResult.php:42
SearchResult
NOTE: this class is being refactored into an abstract base class.
Definition:
SearchResult.php:38
wfDeprecated
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Throws a warning that $function is deprecated.
Definition:
GlobalFunctions.php:1044
RevisionSearchResult
SearchResult class based on the Revision information.
Definition:
RevisionSearchResult.php:8
$title
$title
Definition:
testCompression.php:34
ISearchResultSet
A set of SearchEngine results.
Definition:
ISearchResultSet.php:11
RevisionSearchResultTrait
trait RevisionSearchResultTrait
Transitional trait used to share the methods between SearchResult and RevisionSearchResult.
Definition:
RevisionSearchResultTrait.php:12
includes
search
SearchResult.php
Generated on Thu Dec 19 2019 14:54:50 for MediaWiki by
1.8.16