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

Adds the Entity usage data in ActionEdit. More...

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

Public Member Functions

 __construct (RepoLinker $repoLinker, bool $isMobileView, UsageLookup $usageLookup, FallbackLabelDescriptionLookupFactory $labelDescriptionLookupFactory)
 
 onEditPage__showStandardInputs_options ( $editor, $out, &$tabindex)
 

Static Public Member Functions

static factory (FallbackLabelDescriptionLookupFactory $labelDescriptionLookupFactory, bool $isMobileView, RepoLinker $repoLinker, ClientStore $store)
 

Private Member Functions

 formatAspects (array $rowAspects, IContextSource $context)
 
 formatEntityUsage (array $usages, IContextSource $context)
 
 getHeader (MessageLocalizer $context)
 

Private Attributes

RepoLinker $repoLinker
 
bool $isMobileView
 
UsageLookup $usageLookup
 
FallbackLabelDescriptionLookupFactory $labelDescriptionLookupFactory
 

Detailed Description

Adds the Entity usage data in ActionEdit.

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

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\Hooks\EditActionHookHandler::__construct ( RepoLinker $repoLinker,
bool $isMobileView,
UsageLookup $usageLookup,
FallbackLabelDescriptionLookupFactory $labelDescriptionLookupFactory )

Member Function Documentation

◆ factory()

static Wikibase\Client\Hooks\EditActionHookHandler::factory ( FallbackLabelDescriptionLookupFactory $labelDescriptionLookupFactory,
bool $isMobileView,
RepoLinker $repoLinker,
ClientStore $store )
static

◆ formatAspects()

Wikibase\Client\Hooks\EditActionHookHandler::formatAspects ( array $rowAspects,
IContextSource $context )
private
Parameters
array[]$rowAspects
IContextSource$context
Returns
string HTML

◆ formatEntityUsage()

Wikibase\Client\Hooks\EditActionHookHandler::formatEntityUsage ( array $usages,
IContextSource $context )
private
Parameters
EntityUsage[]$usages
IContextSource$context
Returns
string HTML

◆ getHeader()

Wikibase\Client\Hooks\EditActionHookHandler::getHeader ( MessageLocalizer $context)
private
Parameters
MessageLocalizer$context
Returns
string HTML

◆ onEditPage__showStandardInputs_options()

Wikibase\Client\Hooks\EditActionHookHandler::onEditPage__showStandardInputs_options ( $editor,
$out,
& $tabindex )
Parameters
EditPage$editor
OutputPage$out
int$tabindex

Member Data Documentation

◆ $isMobileView

bool Wikibase\Client\Hooks\EditActionHookHandler::$isMobileView
private

◆ $labelDescriptionLookupFactory

FallbackLabelDescriptionLookupFactory Wikibase\Client\Hooks\EditActionHookHandler::$labelDescriptionLookupFactory
private

◆ $repoLinker

RepoLinker Wikibase\Client\Hooks\EditActionHookHandler::$repoLinker
private

◆ $usageLookup

UsageLookup Wikibase\Client\Hooks\EditActionHookHandler::$usageLookup
private

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