Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
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 ()
 

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 ( )
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: