db->get_where('ea_user_settings', array('id_users' => $user_id))->row_array(); unset($settings['id_users']); return $settings; } /** * This method saves the user settings into the database. * * @param array $settings Contains the current users settings. * @param numeric $user_id User record id of the settings. * @return bool Returns the operation result. */ public function save_settings($settings, $user_id) { $settings['id_users'] = $user_id; $this->db->where('id_users', $user_id); return $this->db->update('ea_user_settings', $settings); } } /* End of file user_model.php */ /* Location: ./application/models/user_model.php */