Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F547085
PhabricatorEmailNotificationsSetting.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
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**, this server 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'
),
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 1:26 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
98984
Default Alt Text
PhabricatorEmailNotificationsSetting.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment