3 final class PhabricatorEmailNotificationsSetting
4 extends PhabricatorSelectSetting
{
6 const SETTINGKEY
= 'no-mail';
8 const VALUE_SEND_MAIL
= '0';
9 const VALUE_NO_MAIL
= '1';
11 public function getSettingName() {
12 return pht('Email Notifications');
15 public function getSettingPanelKey() {
16 return PhabricatorEmailDeliverySettingsPanel
::PANELKEY
;
19 protected function getSettingOrder() {
23 protected function getControlInstructions() {
25 'If you disable **Email Notifications**, Phabricator will never '.
26 'send email to notify you about events. This preference overrides '.
27 'all your other settings.'.
29 "//You will still receive some administrative email, like password ".
33 public function getSettingDefaultValue() {
34 return self
::VALUE_SEND_MAIL
;
37 protected function getSelectOptions() {
39 self
::VALUE_SEND_MAIL
=> pht('Enable Email Notifications'),
40 self
::VALUE_NO_MAIL
=> pht('Disable Email Notifications'),