__construct()
__construct()
Class Constructor
set_setting(string $name, \type $value) : integer
This method sets the value for a specific setting on the database. If the setting doesn't exist, it is going to be created, otherwise updated.
string | $name | The setting name. |
\type | $value | The setting value. |
Returns the setting database id.
save_settings(array $settings) : boolean
Saves all the system settings into the database.
This method is usefull when trying to save all the system settings at once instead of saving them one by one.
array | $settings | Contains all the system settings. |
When the update operation won't work for a specific setting.
Returns the save operation result.