Add remove() to Settings Model
This commit is contained in:
parent
cddaf2ac2e
commit
abb0456641
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue