예제 #1
0
 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());
     }
 }
예제 #2
0
 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());
     }
 }
예제 #3
0
 public function deleteSetting($setting, $uid = 0, $scope = null)
 {
     return framework\Settings::deleteSetting($setting, $this->getName(), $scope, $uid);
 }