55 if ( !$this->
has( $name ) ) {
56 throw new ConfigException( __METHOD__ .
": undefined option: '$name'" );
66 public function has( $name ) {
67 return array_key_exists( $name, $this->
settings );
Exceptions for config failures.
A Config instance which stores all settings as a member variable.
__construct(array $settings=[])
array $settings
Array of config settings.
Allows to change the fields on the form that will be generated $name
globals will be eliminated from MediaWiki replaced by an application object which would be passed to constructors Whether that would be an convenient solution remains to be but certainly PHP makes such object oriented programming models easier than they were in previous versions For the time being MediaWiki programmers will have to work in an environment with some global context At the time of globals were initialised on startup by MediaWiki of these were configuration settings
Interface for configuration instances.
Interface for mutable configuration instances.