Handbuch:Config.php
Appearance
Outdated translations are marked like this.
| MediaWiki-Datei: Config.php | |
|---|---|
| Speicherort: | includes/config/ (includes/Config/ in 1.46 or later) |
| Quellcode: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| Klassen: | Config |
Config is the base interface for implementations that provide access to read various configuration settings.
Um die Standardimplementierung zu erhalten, verwende $code1, $code2 oder $code3.
Verfügbare implementierungen in core sind:
GlobalVarConfig— can access settings in the$GLOBALSsuperglobal array.MultiConfig— can contain multiple config objects that are acting as fallback sequence.HashConfig— stores the configuration in a member variable, allowing values to be set, rather than only get.
Methoden
get( $name )— returns the value of the configuration value named, $name; throws a ConfigException if not set.has( $name )— returns true or false depending if the config object has the configuration value named, $name stored.