Manual:GlobalVarConfig.php
MediaWiki file: GlobalVarConfig.php | |
---|---|
Location: | includes/config/ |
Source code: | master • 1.43.0 • 1.42.4 • 1.39.11 |
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 )