Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / settings / setting / PhabricatorEmailNotificationsSetting.php
blobdfbedb3a12184c261f2647aadeeac45cb572521b
1 <?php
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() {
20 return 100;
23 protected function getControlInstructions() {
24 return pht(
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.'.
28 "\n\n".
29 "//You will still receive some administrative email, like password ".
30 "reset email.//");
33 public function getSettingDefaultValue() {
34 return self::VALUE_SEND_MAIL;
37 protected function getSelectOptions() {
38 return array(
39 self::VALUE_SEND_MAIL => pht('Enable Email Notifications'),
40 self::VALUE_NO_MAIL => pht('Disable Email Notifications'),