Config
class Config (View source)
Methods
Return items from a config file in a object (iterator or with ->)
Reload configuration from file
Get all values like array or get specific item by level (multidimensional) using path
Magic method for get specific item by ->
Magic method for set value (this method don't save data)
Magic method for check if value exists in top-level
Magic method for unset variable with unset()
function
Details
at line 25
void
__construct(string $path)
Return items from a config file in a object (iterator or with ->)
at line 75
bool
save()
Reload configuration from file
at line 100
mixed
get(string $path = null, string $alternative = null)
Get all values like array or get specific item by level (multidimensional) using path
at line 116
Config
set(string $path, mixed $value)
Set value by path in specific level (multidimensional)
at line 141
mixed
__get(string $name)
Magic method for get specific item by ->
at line 155
void
__set(string $name, mixed $value)
Magic method for set value (this method don't save data)
at line 166
bool
__isset(string $name)
Magic method for check if value exists in top-level
at line 177
void
__unset(string $name)
Magic method for unset variable with unset()
function