diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/Model/SettingModel.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/Model/SettingModel.php b/app/Model/SettingModel.php index 5b2ee54f..e3cd4f96 100644 --- a/app/Model/SettingModel.php +++ b/app/Model/SettingModel.php @@ -110,4 +110,18 @@ abstract class SettingModel extends Base return ! in_array(false, $results, true); } + + /** + * Remove a setting + * + * @access public + * @param string $option + * @return bool + */ + public function remove($option) + { + return $this->db->table(self::TABLE) + ->eq('option', $option) + ->remove(); + } } |