MediaWiki
REL1_35
ShowSearchHitHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Search\Hook
;
4
5
use
SearchResult
;
6
use
SpecialSearch
;
7
12
interface
ShowSearchHitHook
{
34
public
function
onShowSearchHit
( $searchPage, $result, $terms, &$link,
35
&$redirect, &$section, &$extract, &$score, &$size, &$date, &$related, &$html
36
);
37
}
SearchResult
NOTE: this class is being refactored into an abstract base class.
Definition
SearchResult.php:38
SpecialSearch
implements Special:Search - Run text & title search and display the output
Definition
SpecialSearch.php:38
MediaWiki\Search\Hook\ShowSearchHitHook
Stable to implement.
Definition
ShowSearchHitHook.php:12
MediaWiki\Search\Hook\ShowSearchHitHook\onShowSearchHit
onShowSearchHit( $searchPage, $result, $terms, &$link, &$redirect, &$section, &$extract, &$score, &$size, &$date, &$related, &$html)
Use this hook to customize display of search hit.
MediaWiki\Search\Hook
Definition
PrefixSearchBackendHook.php:3
includes
search
Hook
ShowSearchHitHook.php
Generated on Sat Apr 6 2024 00:07:47 for MediaWiki by
1.9.8