◆ __construct()
- Parameters
-
SettingsArray | null | $clientSettings | The Client settings, if Client is enabled, else null. |
SettingsArray | null | $repoSettings | The Repo settings, if Repo is enabled, else null. |
SiteLookup | $siteLookup | |
BagOStuff | $cache | |
LanguageNameLookupFactory | $languageNameLookupFactory | |
◆ getScript()
Wikibase\Lib\Modules\CurrentSiteModule::getScript |
( |
RL\Context | $context | ) |
|
Used to propagate information about sites to JavaScript.
Sites infos will be available in 'wbCurrentSiteDetails' config var.
- See also
- RL\Module::getScript
- Parameters
-
- Returns
- string JavaScript Code
◆ makeScript()
Wikibase\Lib\Modules\CurrentSiteModule::makeScript |
( |
MessageLocalizer | $localizer | ) |
|
|
protected |
◆ $cache
Wikibase\Lib\Modules\CurrentSiteModule::$cache |
|
private |
◆ $siteLookup
Wikibase\Lib\Modules\CurrentSiteModule::$siteLookup |
|
private |
◆ SITE_DETAILS_TTL
const Wikibase\Lib\Modules\CurrentSiteModule::SITE_DETAILS_TTL = 3600 |
|
private |
How many seconds the result of getSiteDetails() is cached.
The documentation for this class was generated from the following file: