Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\Hooks\PageHistoryPagerHookHandler Class Reference

Hook handler for prefetching on history pages. More...

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

Public Member Functions

 __construct (bool $federatedPropertiesEnabled, PrefetchingTermLookup $prefetchingLookup, LinkTargetEntityIdLookup $linkTargetEntityIdLookup, LanguageFallbackChainFactory $languageFallbackChainFactory)
 
 onPageHistoryPager__doBatchLookups ( $pager, $result)
 

Static Public Member Functions

static factory (LanguageFallbackChainFactory $languageFallbackChainFactory, LinkTargetEntityIdLookup $linkTargetEntityIdLookup, PrefetchingTermLookup $prefetchingTermLookup, SettingsArray $repoSettings)
 

Private Attributes

 $federatedPropertiesEnabled
 
 $linkTargetEntityIdLookup
 
 $languageFallbackChainFactory
 
 $federatedPropertiesPrefetchHelper
 

Detailed Description

Hook handler for prefetching on history pages.

Currently only used when federated properties are enabled.

Author
Tobias Andersson

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Hooks\PageHistoryPagerHookHandler::__construct ( bool  $federatedPropertiesEnabled,
PrefetchingTermLookup  $prefetchingLookup,
LinkTargetEntityIdLookup  $linkTargetEntityIdLookup,
LanguageFallbackChainFactory  $languageFallbackChainFactory 
)
Parameters
bool$federatedPropertiesEnabled
PrefetchingTermLookup$prefetchingLookup
LinkTargetEntityIdLookup$linkTargetEntityIdLookup
LanguageFallbackChainFactory$languageFallbackChainFactory

Member Function Documentation

◆ factory()

static Wikibase\Repo\Hooks\PageHistoryPagerHookHandler::factory ( LanguageFallbackChainFactory  $languageFallbackChainFactory,
LinkTargetEntityIdLookup  $linkTargetEntityIdLookup,
PrefetchingTermLookup  $prefetchingTermLookup,
SettingsArray  $repoSettings 
)
static

◆ onPageHistoryPager__doBatchLookups()

Wikibase\Repo\Hooks\PageHistoryPagerHookHandler::onPageHistoryPager__doBatchLookups (   $pager,
  $result 
)
Parameters
HistoryPager$pager
IResultWrapper$result

Member Data Documentation

◆ $federatedPropertiesEnabled

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

◆ $federatedPropertiesPrefetchHelper

Wikibase\Repo\Hooks\PageHistoryPagerHookHandler::$federatedPropertiesPrefetchHelper
private

◆ $languageFallbackChainFactory

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

◆ $linkTargetEntityIdLookup

Wikibase\Repo\Hooks\PageHistoryPagerHookHandler::$linkTargetEntityIdLookup
private

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