Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F539908
PhabricatorNotificationsSetting.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
940 B
Referenced Files
None
Subscribers
None
PhabricatorNotificationsSetting.php
View Options
<?php
final
class
PhabricatorNotificationsSetting
extends
PhabricatorInternalSetting
{
const
SETTINGKEY
=
'desktop-notifications'
;
const
WEB_ONLY
=
0
;
const
WEB_AND_DESKTOP
=
1
;
const
DESKTOP_ONLY
=
2
;
const
NONE
=
3
;
public
function
getSettingName
()
{
return
pht
(
'Notifications'
);
}
public
static
function
getOptionsMap
()
{
return
array
(
self
::
WEB_ONLY
=>
pht
(
'Web Only'
),
self
::
WEB_AND_DESKTOP
=>
pht
(
'Web and Desktop'
),
self
::
DESKTOP_ONLY
=>
pht
(
'Desktop Only'
),
self
::
NONE
=>
pht
(
'No Notifications'
),
);
}
public
static
function
desktopReady
(
$option
)
{
switch
(
$option
)
{
case
self
::
WEB_AND_DESKTOP
:
case
self
::
DESKTOP_ONLY
:
return
true
;
}
return
false
;
}
public
static
function
webReady
(
$option
)
{
switch
(
$option
)
{
case
self
::
WEB_AND_DESKTOP
:
case
self
::
WEB_ONLY
:
return
true
;
}
return
false
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 9:21 AM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
105761
Default Alt Text
PhabricatorNotificationsSetting.php (940 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment