Add remove() to Settings Model

This commit is contained in:
Craig Crosby 2018-12-01 15:00:18 -05:00 committed by fguillot
parent cddaf2ac2e
commit abb0456641
1 changed files with 14 additions and 0 deletions

View File

@ -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();
}
}