Manual:GlobalVarConfig.php
Appearance
| MediaWiki file: GlobalVarConfig.php | |
|---|---|
| Location: | includes/config/ (includes/Config/ in 1.46 or later) |
| Source code: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| Classes: | MediaWiki\Config\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 defaultwgprefix for globals. - It can be also instantiated with a preferred prefix using the
newkeyword.
Public methods
[edit]- get( $name )
- has( $name )
Protected methods
[edit]- getWithPrefix( $prefix, $name )
- hasWithPrefix( $prefix, $name )