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

Public Member Functions

 __construct (EntityNamespaceLookup $namespaceChecker, SubscriptionLookup $subscriptionLookup, SiteLookup $siteLookup, EntityIdLookup $entityIdLookup, IContextSource $context, PageProps $pageProps)
 
 handle (IContextSource $context, array $pageInfo)
 

Private Member Functions

 getSubscriptionsInfo (Title $title)
 
 getStatementsInfo (Title $title)
 
 formatProperties (array $properties)
 
 formatSubscriptions (array $subscriptions, Title $title)
 
 getNoSubscriptionText ()
 
 formatSubscription ( $subscription, Title $title)
 

Private Attributes

 $namespaceChecker
 
 $subscriptionLookup
 
 $siteLookup
 
 $entityIdLookup
 
 $context
 
 $pageProps
 

Detailed Description

Author
Amir Sarabadani ladsg.nosp@m.roup.nosp@m.@gmai.nosp@m.l.co.nosp@m.m

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Hooks\InfoActionHookHandler::__construct ( EntityNamespaceLookup  $namespaceChecker,
SubscriptionLookup  $subscriptionLookup,
SiteLookup  $siteLookup,
EntityIdLookup  $entityIdLookup,
IContextSource  $context,
PageProps  $pageProps 
)

Member Function Documentation

◆ formatProperties()

Wikibase\Repo\Hooks\InfoActionHookHandler::formatProperties ( array  $properties)
private
Parameters
array$properties
Returns
string[] HTML

◆ formatSubscription()

Wikibase\Repo\Hooks\InfoActionHookHandler::formatSubscription (   $subscription,
Title  $title 
)
private
Parameters
string$subscription
Title$title
Returns
string HTML

◆ formatSubscriptions()

Wikibase\Repo\Hooks\InfoActionHookHandler::formatSubscriptions ( array  $subscriptions,
Title  $title 
)
private
Parameters
string[]$subscriptions
Title$title
Returns
string[] HTML

◆ getNoSubscriptionText()

Wikibase\Repo\Hooks\InfoActionHookHandler::getNoSubscriptionText ( )
private
Returns
string[] HTML

◆ getStatementsInfo()

Wikibase\Repo\Hooks\InfoActionHookHandler::getStatementsInfo ( Title  $title)
private
Parameters
Title$title
Returns
string[] HTML

◆ getSubscriptionsInfo()

Wikibase\Repo\Hooks\InfoActionHookHandler::getSubscriptionsInfo ( Title  $title)
private
Parameters
Title$title
Returns
string[] HTML

◆ handle()

Wikibase\Repo\Hooks\InfoActionHookHandler::handle ( IContextSource  $context,
array  $pageInfo 
)
Parameters
IContextSource$context
array$pageInfo
Returns
array[]

Member Data Documentation

◆ $context

Wikibase\Repo\Hooks\InfoActionHookHandler::$context
private

◆ $entityIdLookup

Wikibase\Repo\Hooks\InfoActionHookHandler::$entityIdLookup
private

◆ $namespaceChecker

Wikibase\Repo\Hooks\InfoActionHookHandler::$namespaceChecker
private

◆ $pageProps

Wikibase\Repo\Hooks\InfoActionHookHandler::$pageProps
private

◆ $siteLookup

Wikibase\Repo\Hooks\InfoActionHookHandler::$siteLookup
private

◆ $subscriptionLookup

Wikibase\Repo\Hooks\InfoActionHookHandler::$subscriptionLookup
private

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