Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Hooks\LabelPrefetchHookHandler Class Reference

Hook handlers for triggering prefetching of labels. More...

+ Inheritance diagram for Wikibase\Repo\Hooks\LabelPrefetchHookHandler:
+ Collaboration diagram for Wikibase\Repo\Hooks\LabelPrefetchHookHandler:

Public Member Functions

 __construct (TermBuffer $buffer, EntityIdLookup $idLookup, TitleFactory $titleFactory, array $termTypes, LanguageFallbackChainFactory $languageFallbackChainFactory, bool $federatedPropertiesEnabled, SummaryParsingPrefetchHelper $summaryParsingPrefetchHelper)
 
 onChangesListInitRows ( $list, $rows)
 

Static Public Member Functions

static factory (TitleFactory $titleFactory, EntityIdLookup $entityIdLookup, LanguageFallbackChainFactory $languageFallbackChainFactory, PrefetchingTermLookup $prefetchingTermLookup, SettingsArray $repoSettings, TermBuffer $termBuffer)
 

Private Member Functions

 getChangedTitles ( $rows)
 

Private Attributes

 $buffer
 
 $idLookup
 
 $titleFactory
 
 $termTypes
 
 $languageFallbackChainFactory
 
 $federatedPropertiesEnabled
 
 $federatedPropertiesPrefetchingHelper
 

Detailed Description

Hook handlers for triggering prefetching of labels.

Wikibase uses the HtmlPageLinkRendererEnd hook handler

See also
HtmlPageLinkRendererEndHookHandler
Author
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Hooks\LabelPrefetchHookHandler::__construct ( TermBuffer $buffer,
EntityIdLookup $idLookup,
TitleFactory $titleFactory,
array $termTypes,
LanguageFallbackChainFactory $languageFallbackChainFactory,
bool $federatedPropertiesEnabled,
SummaryParsingPrefetchHelper $summaryParsingPrefetchHelper )
Parameters
TermBuffer$buffer
EntityIdLookup$idLookup
TitleFactory$titleFactory
string[]$termTypes
LanguageFallbackChainFactory$languageFallbackChainFactory
bool$federatedPropertiesEnabled
SummaryParsingPrefetchHelper$summaryParsingPrefetchHelper

Member Function Documentation

◆ factory()

static Wikibase\Repo\Hooks\LabelPrefetchHookHandler::factory ( TitleFactory $titleFactory,
EntityIdLookup $entityIdLookup,
LanguageFallbackChainFactory $languageFallbackChainFactory,
PrefetchingTermLookup $prefetchingTermLookup,
SettingsArray $repoSettings,
TermBuffer $termBuffer )
static
Returns
self

◆ getChangedTitles()

Wikibase\Repo\Hooks\LabelPrefetchHookHandler::getChangedTitles ( $rows)
private
Parameters
IResultWrapper | \stdClass[]$rows
Returns
Title[]

◆ onChangesListInitRows()

Wikibase\Repo\Hooks\LabelPrefetchHookHandler::onChangesListInitRows ( $list,
$rows )
Parameters
ChangesList$list
IResultWrapper | \stdClass[]$rows

Member Data Documentation

◆ $buffer

Wikibase\Repo\Hooks\LabelPrefetchHookHandler::$buffer
private

◆ $federatedPropertiesEnabled

Wikibase\Repo\Hooks\LabelPrefetchHookHandler::$federatedPropertiesEnabled
private

◆ $federatedPropertiesPrefetchingHelper

Wikibase\Repo\Hooks\LabelPrefetchHookHandler::$federatedPropertiesPrefetchingHelper
private

◆ $idLookup

Wikibase\Repo\Hooks\LabelPrefetchHookHandler::$idLookup
private

◆ $languageFallbackChainFactory

Wikibase\Repo\Hooks\LabelPrefetchHookHandler::$languageFallbackChainFactory
private

◆ $termTypes

Wikibase\Repo\Hooks\LabelPrefetchHookHandler::$termTypes
private

◆ $titleFactory

Wikibase\Repo\Hooks\LabelPrefetchHookHandler::$titleFactory
private

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