public function update()
{
try {
$ts = time();
$this->model->setModificationDate($ts);
$type = get_object_vars($this->model);
foreach ($type as $key => $value) {
if (in_array($key, $this->getValidTableColumns("website_settings"))) {
$data[$key] = $value;
}
}
$this->db->update("website_settings", $data, $this->db->quoteInto("id = ?", $this->model->getId()));
} catch (\Exception $e) {
throw $e;
}
$this->model->clearDependentCache();
}