Wikibase
MediaWiki Wikibase extension
Wikibase\Client\Hooks\BeforePageDisplayHandler Class Reference

Adds CSS for the edit links sidebar link or JS to create a new item or to link with an existing one. More...

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

Public Member Functions

 __construct (NamespaceChecker $namespaceChecker, $dataBridgeEnabled)
 
 onBeforePageDisplay ( $out, $skin)
 
 addModules (OutputPage $out, $actionName)
 

Static Public Member Functions

static factory (NamespaceChecker $namespaceChecker, SettingsArray $clientSettings)
 

Private Member Functions

 addStyleModules (OutputPage $out, Title $title, $actionName)
 
 addJsModules (OutputPage $out, Title $title, $actionName)
 
 hasEditOrAddLinks (OutputPage $out, Title $title, $actionName)
 
 allLinksAreSuppressed (OutputPage $outputPage)
 
 hasLinkItemWidget (User $user, OutputPage $outputPage, Title $title, $actionName)
 

Private Attributes

 $namespaceChecker
 
 $dataBridgeEnabled
 

Detailed Description

Adds CSS for the edit links sidebar link or JS to create a new item or to link with an existing one.

Author
Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\Hooks\BeforePageDisplayHandler::__construct ( NamespaceChecker  $namespaceChecker,
  $dataBridgeEnabled 
)

Member Function Documentation

◆ addJsModules()

Wikibase\Client\Hooks\BeforePageDisplayHandler::addJsModules ( OutputPage  $out,
Title  $title,
  $actionName 
)
private

◆ addModules()

Wikibase\Client\Hooks\BeforePageDisplayHandler::addModules ( OutputPage  $out,
  $actionName 
)
Parameters
OutputPage$out
string$actionName

◆ addStyleModules()

Wikibase\Client\Hooks\BeforePageDisplayHandler::addStyleModules ( OutputPage  $out,
Title  $title,
  $actionName 
)
private

◆ allLinksAreSuppressed()

Wikibase\Client\Hooks\BeforePageDisplayHandler::allLinksAreSuppressed ( OutputPage  $outputPage)
private

◆ factory()

static Wikibase\Client\Hooks\BeforePageDisplayHandler::factory ( NamespaceChecker  $namespaceChecker,
SettingsArray  $clientSettings 
)
static

◆ hasEditOrAddLinks()

Wikibase\Client\Hooks\BeforePageDisplayHandler::hasEditOrAddLinks ( OutputPage  $out,
Title  $title,
  $actionName 
)
private

◆ hasLinkItemWidget()

Wikibase\Client\Hooks\BeforePageDisplayHandler::hasLinkItemWidget ( User  $user,
OutputPage  $outputPage,
Title  $title,
  $actionName 
)
private

◆ onBeforePageDisplay()

Wikibase\Client\Hooks\BeforePageDisplayHandler::onBeforePageDisplay (   $out,
  $skin 
)
Parameters
OutputPage$out
Skin$skin

Member Data Documentation

◆ $dataBridgeEnabled

Wikibase\Client\Hooks\BeforePageDisplayHandler::$dataBridgeEnabled
private

◆ $namespaceChecker

Wikibase\Client\Hooks\BeforePageDisplayHandler::$namespaceChecker
private

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