Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98366394
PhabricatorEmailNotificationsSetting.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
Sun, Jan 12, 12:59
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Jan 14, 12:59 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
23552266
Attached To
rPH Phabricator
PhabricatorEmailNotificationsSetting.php
View Options
<?php
final
class
PhabricatorEmailNotificationsSetting
extends
PhabricatorSelectSetting
{
const
SETTINGKEY
=
'no-mail'
;
const
VALUE_SEND_MAIL
=
'0'
;
const
VALUE_NO_MAIL
=
'1'
;
public
function
getSettingName
()
{
return
pht
(
'Email Notifications'
);
}
public
function
getSettingPanelKey
()
{
return
PhabricatorEmailDeliverySettingsPanel
::
PANELKEY
;
}
protected
function
getSettingOrder
()
{
return
100
;
}
protected
function
getControlInstructions
()
{
return
pht
(
'If you disable **Email Notifications**, Phabricator will never '
.
'send email to notify you about events. This preference overrides '
.
'all your other settings.'
.
"
\n\n
"
.
"//You will still receive some administrative email, like password "
.
"reset email.//"
);
}
public
function
getSettingDefaultValue
()
{
return
self
::
VALUE_SEND_MAIL
;
}
protected
function
getSelectOptions
()
{
return
array
(
self
::
VALUE_SEND_MAIL
=>
pht
(
'Enable Email Notifications'
),
self
::
VALUE_NO_MAIL
=>
pht
(
'Disable Email Notifications'
),
);
}
}
Event Timeline
Log In to Comment