MediaWiki  REL1_24
HashConfig Class Reference

A Config instance which stores all settings as a member variable. More...

Inheritance diagram for HashConfig:
Collaboration diagram for HashConfig:

List of all members.

Public Member Functions

 __construct (array $settings=array())
 get ($name)
 has ($name)
 set ($name, $value)

Static Public Member Functions

static newInstance ()

Private Attributes

array $settings
 Array of config settings.

Detailed Description

A Config instance which stores all settings as a member variable.

Since:
1.24

Definition at line 28 of file HashConfig.php.


Constructor & Destructor Documentation

HashConfig::__construct ( array settings = array())
Parameters:
array$settingsAny current settings to pre-load

Definition at line 46 of file HashConfig.php.


Member Function Documentation

HashConfig::get ( name)
See also:
Config::get

Implements Config.

Definition at line 53 of file HashConfig.php.

HashConfig::has ( name)
See also:
Config::has

Implements Config.

Definition at line 64 of file HashConfig.php.

static HashConfig::newInstance ( ) [static]
Returns:
HashConfig

Definition at line 39 of file HashConfig.php.

Referenced by HashConfigTest\testNewInstance().

HashConfig::set ( name,
value 
)
See also:
Config::set

Implements MutableConfig.

Definition at line 71 of file HashConfig.php.


Member Data Documentation

array HashConfig::$settings [private]

Array of config settings.

Definition at line 34 of file HashConfig.php.


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