Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101206079
PhabricatorNotificationsSetting.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Feb 6, 19:20
Size
940 B
Mime Type
text/x-php
Expires
Sat, Feb 8, 19:20 (2 d)
Engine
blob
Format
Raw Data
Handle
24114567
Attached To
rPH Phabricator
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
;
}
}
Event Timeline
Log In to Comment