Semantic MediaWiki and related extensions
Public Member Functions | Public Attributes | List of all members
SMW\MediaWiki\Hooks\ResourceLoaderGetConfigVars Class Reference
Inheritance diagram for SMW\MediaWiki\Hooks\ResourceLoaderGetConfigVars:
Inheritance graph
[legend]
Collaboration diagram for SMW\MediaWiki\Hooks\ResourceLoaderGetConfigVars:
Collaboration graph
[legend]

Public Member Functions

 __construct (NamespaceInfo $namespaceInfo)
 
 process (array &$vars)
 
- Public Member Functions inherited from SMW\MediaWiki\Hooks\HookHandler
 __construct ()
 
 setOptions (array $options)
 
 setOption ( $key, $value)
 
 getOption ( $key, $default=null)
 
 isFlagSet ( $key, $flag)
 

Public Attributes

const OPTION_KEYS
 

Additional Inherited Members

- Protected Member Functions inherited from SMW\MediaWiki\Hooks\HookHandler
 log ( $message, $context=[])
 

Detailed Description

Hook: ResourceLoaderGetConfigVars called right before ResourceLoaderStartUpModule::getConfig and exports static configuration variables to JavaScript. Things that depend on the current page/request state should use MakeGlobalVariablesScript instead

See also
https://www.mediawiki.org/wiki/Manual:Hooks/ResourceLoaderGetConfigVars

GNU GPL v2+

Since
2.0
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\MediaWiki\Hooks\ResourceLoaderGetConfigVars::__construct ( NamespaceInfo  $namespaceInfo)
Since
3.1
Parameters
NamespaceInfo$namespaceInfo

Member Function Documentation

◆ process()

SMW\MediaWiki\Hooks\ResourceLoaderGetConfigVars::process ( array &  $vars)
Since
1.9
Parameters
array$vars
Returns
boolean

Member Data Documentation

◆ OPTION_KEYS

const SMW\MediaWiki\Hooks\ResourceLoaderGetConfigVars::OPTION_KEYS
Initial value:
= [
'smwgQMaxLimit',
'smwgQMaxInlineLimit',
'smwgNamespacesWithSemanticLinks',
'smwgResultFormats'
]

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

About | General disclaimer | Privacy policy