MediaWiki
master
SearchDataForIndex2Hook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Content\Hook
;
4
5
use
MediaWiki\Content\ContentHandler
;
6
use
MediaWiki\Parser\ParserOutput
;
7
use
MediaWiki\Revision\RevisionRecord
;
8
use
SearchEngine
;
9
use
WikiPage
;
10
18
interface
SearchDataForIndex2Hook
{
19
34
public
function
onSearchDataForIndex2
(
35
array &$fields,
36
ContentHandler
$handler,
37
WikiPage
$page,
38
ParserOutput
$output,
39
SearchEngine
$engine,
40
RevisionRecord
$revision
41
);
42
}
MediaWiki\Content\ContentHandler
A content handler knows how do deal with a specific type of content on a wiki page.
Definition
ContentHandler.php:95
MediaWiki\Parser\ParserOutput
ParserOutput is a rendering of a Content object or a message.
Definition
ParserOutput.php:97
MediaWiki\Revision\RevisionRecord
Page revision base class.
Definition
RevisionRecord.php:47
SearchEngine
Contain a class for special pages.
Definition
SearchEngine.php:42
WikiPage
Base representation for an editable wiki page.
Definition
WikiPage.php:81
MediaWiki\Content\Hook\SearchDataForIndex2Hook
This is a hook handler interface, see docs/Hooks.md.
Definition
SearchDataForIndex2Hook.php:18
MediaWiki\Content\Hook\SearchDataForIndex2Hook\onSearchDataForIndex2
onSearchDataForIndex2(array &$fields, ContentHandler $handler, WikiPage $page, ParserOutput $output, SearchEngine $engine, RevisionRecord $revision)
Use this hook to add data to search document.
MediaWiki\Content\Hook
Definition
ContentAlterParserOutputHook.php:3
includes
content
Hook
SearchDataForIndex2Hook.php
Generated on Wed Sep 18 2024 12:22:49 for MediaWiki by
1.10.0