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\Page\WikiPage
;
7
use
MediaWiki\Parser\ParserOutput
;
8
use
MediaWiki\Revision\RevisionRecord
;
9
use
SearchEngine
;
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
Base class for content handling.
Definition
ContentHandler.php:89
MediaWiki\Page\WikiPage
Base representation for an editable wiki page.
Definition
WikiPage.php:93
MediaWiki\Parser\ParserOutput
ParserOutput is a rendering of a Content object or a message.
Definition
ParserOutput.php:93
MediaWiki\Revision\RevisionRecord
Page revision base class.
Definition
RevisionRecord.php:49
SearchEngine
Contain a class for special pages.
Definition
SearchEngine.php:44
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 Sun Apr 20 2025 08:24:04 for MediaWiki by
1.10.0