config
class config implements tool_interface
Migration config tool
Properties
protected config | $config |
Methods
Retrieve a short name used for commands in migrations.
Add a config setting.
Update an existing config setting.
Update a config setting if the first argument equal to the current config value
Remove an existing config setting.
Reverse an original install action
Details
at line 29
__construct(config $config)
Constructor
at line 37
string
get_name()
Retrieve a short name used for commands in migrations.
at line 52
null
add(string $config_name, mixed $config_value, bool $is_dynamic = false)
Add a config setting.
at line 71
null
update(string $config_name, mixed $config_value)
Update an existing config setting.
at line 93
null
update_if_equals(string $compare, string $config_name, mixed $config_value)
Update a config setting if the first argument equal to the current config value
at line 110
null
remove(string $config_name)
Remove an existing config setting.
at line 123
null
reverse()
Reverse an original install action
First argument is the original call to the class (e.g. add, remove) After the first argument, send the original arguments to the function in the original call