public function setDesktopNotificationsNewTabEnabled($value = true) { if ($value) { framework\Settings::saveSetting(framework\Settings::SETTING_USER_DESKTOP_NOTIFICATIONS_NEW_TAB, true, 'core', null, $this->getID()); } else { framework\Settings::deleteSetting(framework\Settings::SETTING_USER_DESKTOP_NOTIFICATIONS_NEW_TAB, 'core', null, $this->getID()); } }
public function setKeyboardNavigationEnabled($value = true) { if (!$value) { framework\Settings::saveSetting(framework\Settings::SETTING_USER_KEYBOARD_NAVIGATION, false, 'core', null, $this->getID()); } else { framework\Settings::deleteSetting(framework\Settings::SETTING_USER_KEYBOARD_NAVIGATION, 'core', null, $this->getID()); } }
public function deleteSetting($setting, $uid = 0, $scope = null) { return framework\Settings::deleteSetting($setting, $this->getName(), $scope, $uid); }