Wikibase
MediaWiki Wikibase extension
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, UsageLookup $usageLookup, LanguageFallbackLabelDescriptionLookupFactory $labelDescriptionLookupFactory, EntityIdParser $idParser)
 
 onEditPage__showStandardInputs_options ( $editor, $out, &$tabindex)
 

Static Public Member Functions

static factory (EntityIdParser $idParser, LanguageFallbackChainFactory $languageFallbackChainFactory, RepoLinker $repoLinker, ClientStore $store, TermBuffer $termBuffer, TermLookup $termLookup)
 

Private Member Functions

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

Private Attributes

 $repoLinker
 
 $usageLookup
 
 $labelDescriptionLookupFactory
 
 $idParser
 

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,
UsageLookup  $usageLookup,
LanguageFallbackLabelDescriptionLookupFactory  $labelDescriptionLookupFactory,
EntityIdParser  $idParser 
)

Member Function Documentation

◆ factory()

static Wikibase\Client\Hooks\EditActionHookHandler::factory ( EntityIdParser  $idParser,
LanguageFallbackChainFactory  $languageFallbackChainFactory,
RepoLinker  $repoLinker,
ClientStore  $store,
TermBuffer  $termBuffer,
TermLookup  $termLookup 
)
static

◆ formatAspects()

Wikibase\Client\Hooks\EditActionHookHandler::formatAspects ( array  $rowAspects,
IContextSource  $context 
)
private
Parameters
string[][]$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

◆ $idParser

Wikibase\Client\Hooks\EditActionHookHandler::$idParser
private

◆ $labelDescriptionLookupFactory

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

◆ $repoLinker

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

◆ $usageLookup

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

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