Methods

Deletes a (dot notated) config item

delete(string $item) : array | bool

Parameters

$item

string

a (dot notated) config key

Returns

arrayboolthe \Arr::delete result, success boolean or array of success booleans

Returns a (dot notated) config setting

get(string $item, mixed $default) : mixed

Parameters

$item

string

name of the config item, can be dot notated

$default

mixed

the return value if the item isn't found

Returns

mixedthe config setting or default if not found

Loads a config file.

load(mixed $file, mixed $group, bool $reload, bool $overwrite) : array

Parameters

$file

mixed

string file | config array | Config_Interface instance

$group

mixed

null for no group, true for group is filename, false for not storing in the master config

$reload

bool

true to force a reload even if the file is already loaded

$overwrite

bool

true for array_merge, false for \Arr::merge

Exceptions

\FuelException

Returns

arraythe (loaded) config array

Save a config array to disc.

save(string $file, string | array $config) : bool

Parameters

$file

string

desired file name

$config

stringarray

master config array key or config array

Exceptions

\FuelException

Returns

boolfalse when config is empty or invalid else \File::update result

Sets a (dot notated) config item

set(string $item, mixed $value) 

Parameters

$item

string

a (dot notated) config key

$value

mixed

the config value

 Properties

 

<p>the master config array</p>

$items : array

 

<p>array of loaded files</p>

$loaded_files : array

 

<p>the dot-notated item cache</p>

$itemcache : array