Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Hooks\MakeGlobalVariablesScriptHookHandler Class Reference
+ Inheritance diagram for Wikibase\Repo\Hooks\MakeGlobalVariablesScriptHookHandler:
+ Collaboration diagram for Wikibase\Repo\Hooks\MakeGlobalVariablesScriptHookHandler:

Public Member Functions

 __construct (OutputPageEntityViewChecker $entityViewChecker, OutputPageJsConfigBuilder $outputPageJsConfigBuilder, ContentLanguages $termsLanguages, UserLanguageLookup $userLanguageLookup, UserPreferredContentLanguagesLookup $userPreferredContentLanguagesLookup, string $dataRightsUrl, string $dataRightsText, array $badgeItems, int $stringLimit, bool $taintedReferencesEnabled)
 
 onMakeGlobalVariablesScript (&$vars, $out)
 

Static Public Member Functions

static factory (Language $contentLanguage, EntityContentFactory $entityContentFactory, SettingsArray $repoSettings, ContentLanguages $termsLanguages)
 

Private Attributes

 $entityViewChecker
 
 $outputPageJsConfigBuilder
 
 $termsLanguages
 
 $userLanguageLookup
 
 $userPreferredContentLanguagesLookup
 
 $dataRightsUrl
 
 $dataRightsText
 
 $badgeItems
 
 $stringLimit
 
 $taintedReferencesEnabled
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Hooks\MakeGlobalVariablesScriptHookHandler::__construct ( OutputPageEntityViewChecker $entityViewChecker,
OutputPageJsConfigBuilder $outputPageJsConfigBuilder,
ContentLanguages $termsLanguages,
UserLanguageLookup $userLanguageLookup,
UserPreferredContentLanguagesLookup $userPreferredContentLanguagesLookup,
string $dataRightsUrl,
string $dataRightsText,
array $badgeItems,
int $stringLimit,
bool $taintedReferencesEnabled )

Member Function Documentation

◆ factory()

static Wikibase\Repo\Hooks\MakeGlobalVariablesScriptHookHandler::factory ( Language $contentLanguage,
EntityContentFactory $entityContentFactory,
SettingsArray $repoSettings,
ContentLanguages $termsLanguages )
static

◆ onMakeGlobalVariablesScript()

Wikibase\Repo\Hooks\MakeGlobalVariablesScriptHookHandler::onMakeGlobalVariablesScript ( & $vars,
$out )
Parameters
array&$vars
OutputPage$out

Member Data Documentation

◆ $badgeItems

Wikibase\Repo\Hooks\MakeGlobalVariablesScriptHookHandler::$badgeItems
private

◆ $dataRightsText

Wikibase\Repo\Hooks\MakeGlobalVariablesScriptHookHandler::$dataRightsText
private

◆ $dataRightsUrl

Wikibase\Repo\Hooks\MakeGlobalVariablesScriptHookHandler::$dataRightsUrl
private

◆ $entityViewChecker

Wikibase\Repo\Hooks\MakeGlobalVariablesScriptHookHandler::$entityViewChecker
private

◆ $outputPageJsConfigBuilder

Wikibase\Repo\Hooks\MakeGlobalVariablesScriptHookHandler::$outputPageJsConfigBuilder
private

◆ $stringLimit

Wikibase\Repo\Hooks\MakeGlobalVariablesScriptHookHandler::$stringLimit
private

◆ $taintedReferencesEnabled

Wikibase\Repo\Hooks\MakeGlobalVariablesScriptHookHandler::$taintedReferencesEnabled
private

◆ $termsLanguages

Wikibase\Repo\Hooks\MakeGlobalVariablesScriptHookHandler::$termsLanguages
private

◆ $userLanguageLookup

Wikibase\Repo\Hooks\MakeGlobalVariablesScriptHookHandler::$userLanguageLookup
private

◆ $userPreferredContentLanguagesLookup

Wikibase\Repo\Hooks\MakeGlobalVariablesScriptHookHandler::$userPreferredContentLanguagesLookup
private

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