PHP Class Ergo\Config\FileConfig

Inheritance: implements Ergo\Config
Show file Open project: 99designs/ergo

Protected Properties

Property Type Description
$_data

Public Methods

Method Description
__construct ( $files = [] )
exists ( $key ) * (non-phpdoc)
get ( $key ) * (non-phpdoc)
getIterator ( ) * (non-phpdoc)
keys ( ) * (non-phpdoc)
loadFile ( $file, $optional = false, $varname = false, $recursive = false ) Loads a config file and merges its contents with the previously loaded settings
set ( string $key, mixed $value )
toArrayConfig ( ) : ArrayConfig Converts the config to an ArrayConfig, which is mutable

Method Details

__construct() public method

public __construct ( $files = [] )

exists() public method

* (non-phpdoc)
See also: Ergo\Config::exists
public exists ( $key )

get() public method

* (non-phpdoc)
See also: Ergo\Config::get
public get ( $key )

getIterator() public method

* (non-phpdoc)
See also: IteratorAggregate::getIterator()
public getIterator ( )

keys() public method

* (non-phpdoc)
See also: Ergo\Config::getKeys
public keys ( )

loadFile() public method

Loads a config file and merges its contents with the previously loaded settings
public loadFile ( $file, $optional = false, $varname = false, $recursive = false )

set() public method

public set ( string $key, mixed $value )
$key string
$value mixed

toArrayConfig() public method

Converts the config to an ArrayConfig, which is mutable
public toArrayConfig ( ) : ArrayConfig
return ArrayConfig

Property Details

$_data protected property

protected $_data