3 final class PhabricatorNotificationsSetting
4 extends PhabricatorInternalSetting
{
6 const SETTINGKEY
= 'desktop-notifications';
9 const WEB_AND_DESKTOP
= 1;
10 const DESKTOP_ONLY
= 2;
13 public function getSettingName() {
14 return pht('Notifications');
17 public static function getOptionsMap() {
19 self
::WEB_ONLY
=> pht('Web Only'),
20 self
::WEB_AND_DESKTOP
=> pht('Web and Desktop'),
21 self
::DESKTOP_ONLY
=> pht('Desktop Only'),
22 self
::NONE
=> pht('No Notifications'),
26 public static function desktopReady($option) {
28 case self
::WEB_AND_DESKTOP
:
29 case self
::DESKTOP_ONLY
:
35 public static function webReady($option) {
37 case self
::WEB_AND_DESKTOP
: