Config
class Config (View source)
Methods
Return items from a config file in a object (iterator or with ->)
Save configuration to 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
No description
Details
void
__construct(string $path)
Return items from a config file in a object (iterator or with ->)
static Config
load(string $path)
Create a Negotiation instance
Config
reload()
Reload configuration from file
bool
save()
Save configuration to file
mixed
get(string $path = null, string $alternative = null)
Get all values like array or get specific item by level (multidimensional) using path
Config
set(string $path, mixed $value)
Set value by path in specific level (multidimensional)
mixed
__get(string $name)
Magic method for get specific item by ->
void
__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
void
__unset(string $name)
Magic method for unset variable with unset() function
__destruct()
No description