Manual:GlobalVarConfig.php
Appearance
MediaWiki file: GlobalVarConfig.php | |
---|---|
Location: | includes/config/ |
Source code: | master • 1.43.1 • 1.42.6 • 1.39.12 |
Classes: | GlobalVarConfig |
Class used to access configuration settings from $GLOBALS
. It implements the Config interface.
Instantiation
[edit]- It can be instantiated statically with
GlobalVarConfig::newInstance()
, which automatically sets the defaultwg
prefix for globals. - It can be also instantiated with a preferred prefix using the
new
keyword.
Public methods
[edit]- get( $name )
- has( $name )
Protected methods
[edit]- getWithPrefix( $prefix, $name )
- hasWithPrefix( $prefix, $name )