Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2893651
PhabricatorConpherenceNotificationsSetting.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorConpherenceNotificationsSetting.php
View Options
<?php
final
class
PhabricatorConpherenceNotificationsSetting
extends
PhabricatorSelectSetting
{
const
SETTINGKEY
=
'conph-notifications'
;
const
VALUE_CONPHERENCE_EMAIL
=
'0'
;
const
VALUE_CONPHERENCE_NOTIFY
=
'1'
;
public
function
getSettingName
(
)
{
return
pht
(
'Conpherence Notifications'
)
;
}
public
function
getSettingPanelKey
(
)
{
return
PhabricatorConpherencePreferencesSettingsPanel
::
PANELKEY
;
}
protected
function
getControlInstructions
(
)
{
return
pht
(
'Choose the default notification behavior for Conpherence rooms.'
)
;
}
protected
function
isEnabledForViewer
(
PhabricatorUser
$viewer
)
{
return
PhabricatorApplication
::
isClassInstalledForViewer
(
'PhabricatorConpherenceApplication'
,
$viewer
)
;
}
public
function
getSettingDefaultValue
(
)
{
return
self
::
VALUE_CONPHERENCE_EMAIL
;
}
protected
function
getSelectOptions
(
)
{
return
self
::
getOptionsMap
(
)
;
}
public
static
function
getSettingLabel
(
$key
)
{
$labels
=
self
::
getOptionsMap
(
)
;
return
idx
(
$labels
,
$key
,
pht
(
'Unknown ("%s")'
,
$key
)
)
;
}
private
static
function
getOptionsMap
(
)
{
return
array
(
self
::
VALUE_CONPHERENCE_EMAIL
=>
pht
(
'Send Email'
)
,
self
::
VALUE_CONPHERENCE_NOTIFY
=>
pht
(
'Send Notifications'
)
,
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 18:49 (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127565
Default Alt Text
PhabricatorConpherenceNotificationsSetting.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment