Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Client\Hooks\TrivialHookHandler Class Reference

Handler for “trivial” hooks: ones that don’t need any services injected, and whose code is fairly brief. More...

+ Inheritance diagram for Wikibase\Client\Hooks\TrivialHookHandler:
+ Collaboration diagram for Wikibase\Client\Hooks\TrivialHookHandler:

Public Member Functions

 onAbortEmailNotification ( $editor, $title, $recentChange)
 
 onBeforePageDisplay ( $outputPage, $skin)
 Add the connected item prefixed id as a JS config variable, for gadgets etc.
 
 onSearchDataForIndex (&$fields, $handler, $page, $output, $engine)
 Put wikibase_item into the data.
 
 onSearchDataForIndex2 (array &$fields, ContentHandler $handler, WikiPage $page, ParserOutput $output, SearchEngine $engine, RevisionRecord $revision)
 Put wikibase_item into the data.
 
 onSearchIndexFields (&$fields, $engine)
 Register wikibase_item field.
 
 onUnitTestsList (&$paths)
 
 onWgQueryPages (&$queryPages)
 
 onMaintenanceShellStart ()
 

Private Member Functions

 doSearchDataForIndex (array &$fields, ParserOutput $parserOutput)
 

Detailed Description

Handler for “trivial” hooks: ones that don’t need any services injected, and whose code is fairly brief.

Member Function Documentation

◆ doSearchDataForIndex()

Wikibase\Client\Hooks\TrivialHookHandler::doSearchDataForIndex ( array &  $fields,
ParserOutput  $parserOutput 
)
private
Parameters
array&$fields
ParserOutput$parserOutput

◆ onAbortEmailNotification()

Wikibase\Client\Hooks\TrivialHookHandler::onAbortEmailNotification (   $editor,
  $title,
  $recentChange 
)
Parameters
User$editor
Title$title
RecentChange$recentChange
Returns
bool

◆ onBeforePageDisplay()

Wikibase\Client\Hooks\TrivialHookHandler::onBeforePageDisplay (   $outputPage,
  $skin 
)

Add the connected item prefixed id as a JS config variable, for gadgets etc.

Parameters
OutputPage$outputPage
Skin$skin

◆ onMaintenanceShellStart()

Wikibase\Client\Hooks\TrivialHookHandler::onMaintenanceShellStart ( )

◆ onSearchDataForIndex()

Wikibase\Client\Hooks\TrivialHookHandler::onSearchDataForIndex ( $fields,
  $handler,
  $page,
  $output,
  $engine 
)

Put wikibase_item into the data.

Parameters
array&$fields
ContentHandler$handler
WikiPage$page
ParserOutput$output
SearchEngine$engine

◆ onSearchDataForIndex2()

Wikibase\Client\Hooks\TrivialHookHandler::onSearchDataForIndex2 ( array &  $fields,
ContentHandler  $handler,
WikiPage  $page,
ParserOutput  $output,
SearchEngine  $engine,
RevisionRecord  $revision 
)

Put wikibase_item into the data.

Parameters
array&$fields
ContentHandler$handler
WikiPage$page
ParserOutput$output
SearchEngine$engine

◆ onSearchIndexFields()

Wikibase\Client\Hooks\TrivialHookHandler::onSearchIndexFields ( $fields,
  $engine 
)

Register wikibase_item field.

Parameters
array&$fields
SearchEngine$engine

◆ onUnitTestsList()

Wikibase\Client\Hooks\TrivialHookHandler::onUnitTestsList ( $paths)
Parameters
string[]&$paths

◆ onWgQueryPages()

Wikibase\Client\Hooks\TrivialHookHandler::onWgQueryPages ( $queryPages)
Parameters
array[]&$queryPages

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