Differential D16038 Diff 38604 src/applications/settings/setting/PhabricatorEmailNotificationsSetting.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/setting/PhabricatorEmailNotificationsSetting.php
| <?php | <?php | ||||
| final class PhabricatorEmailNotificationsSetting | final class PhabricatorEmailNotificationsSetting | ||||
| extends PhabricatorSelectSetting { | extends PhabricatorSelectSetting { | ||||
| const SETTINGKEY = 'no-mail'; | const SETTINGKEY = 'no-mail'; | ||||
| const VALUE_SEND_MAIL = '0'; | const VALUE_SEND_MAIL = '0'; | ||||
| const VALUE_NO_MAIL = '1'; | const VALUE_NO_MAIL = '1'; | ||||
| public function getSettingName() { | public function getSettingName() { | ||||
| return pht('Email Notifications'); | return pht('Email Notifications'); | ||||
| } | } | ||||
| public function getSettingPanelKey() { | |||||
| return PhabricatorEmailDeliverySettingsPanel::PANELKEY; | |||||
| } | |||||
| protected function getSettingOrder() { | |||||
| return 100; | |||||
| } | |||||
| protected function getControlInstructions() { | protected function getControlInstructions() { | ||||
| return pht( | return pht( | ||||
| 'If you disable **Email Notifications**, Phabricator will never '. | 'If you disable **Email Notifications**, Phabricator will never '. | ||||
| 'send email to notify you about events. This preference overrides '. | 'send email to notify you about events. This preference overrides '. | ||||
| 'all your other settings.'. | 'all your other settings.'. | ||||
| "\n\n". | "\n\n". | ||||
| "//You will still receive some administrative email, like password ". | "//You will still receive some administrative email, like password ". | ||||
| "reset email.//"); | "reset email.//"); | ||||
| Show All 14 Lines | |||||