class Config (View source)

Methods

__construct(string $path)

Return items from a config file in a object (iterator or with ->)

reload()

Reload configuration from file

bool
commit()

Save configuration to file

mixed
__get(string $name)

Magic method for get specific item

__set(string $name, mixed $value)

Magic method for set value (this method don't save data)

bool
__isset(string $name)

Magic method for check if value exists in top-level

__unset(string $name)

Magic method for unset variable with unset() function

Details

__construct(string $path)

Return items from a config file in a object (iterator or with ->)

Parameters

string $path

Exceptions

Exception

reload()

Reload configuration from file

Exceptions

Exception

bool commit()

Save configuration to file

Return Value

bool

mixed __get(string $name)

Magic method for get specific item

Parameters

string $name

Return Value

mixed

__set(string $name, mixed $value)

Magic method for set value (this method don't save data)

Parameters

string $name
mixed $value

bool __isset(string $name)

Magic method for check if value exists in top-level

Parameters

string $name

Return Value

bool

__unset(string $name)

Magic method for unset variable with unset() function

Parameters

string $name