MediaWiki  master
MediaWiki\Settings\Source\ArraySource Class Reference

Settings loaded from an array. More...

Inheritance diagram for MediaWiki\Settings\Source\ArraySource:
Collaboration diagram for MediaWiki\Settings\Source\ArraySource:

Public Member Functions

 __construct (array $settings)
 
 __toString ()
 
 load ()
 Loads and returns all settings from this source as an associative array. More...
 

Private Attributes

 $settings
 

Detailed Description

Settings loaded from an array.

Since
1.38

Definition at line 10 of file ArraySource.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Settings\Source\ArraySource::__construct ( array  $settings)

Definition at line 13 of file ArraySource.php.

References MediaWiki\Settings\Source\ArraySource\$settings.

Member Function Documentation

◆ __toString()

MediaWiki\Settings\Source\ArraySource::__toString ( )

Definition at line 21 of file ArraySource.php.

◆ load()

MediaWiki\Settings\Source\ArraySource::load ( )

Loads and returns all settings from this source as an associative array.

Returns
array
Exceptions
SettingsBuilderException

Implements MediaWiki\Settings\Source\SettingsSource.

Definition at line 17 of file ArraySource.php.

Member Data Documentation

◆ $settings

MediaWiki\Settings\Source\ArraySource::$settings
private

Definition at line 11 of file ArraySource.php.

Referenced by MediaWiki\Settings\Source\ArraySource\__construct().


The documentation for this class was generated from the following file: