Config
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 ->)
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