Differential D16038 Diff 38604 src/applications/settings/setting/PhabricatorEmailSelfActionsSetting.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/setting/PhabricatorEmailSelfActionsSetting.php
| <?php | <?php | ||||
| final class PhabricatorEmailSelfActionsSetting | final class PhabricatorEmailSelfActionsSetting | ||||
| extends PhabricatorSelectSetting { | extends PhabricatorSelectSetting { | ||||
| const SETTINGKEY = 'self-mail'; | const SETTINGKEY = 'self-mail'; | ||||
| const VALUE_SEND_SELF = '0'; | const VALUE_SEND_SELF = '0'; | ||||
| const VALUE_NO_SELF = '1'; | const VALUE_NO_SELF = '1'; | ||||
| public function getSettingName() { | public function getSettingName() { | ||||
| return pht('Self Actions'); | return pht('Self Actions'); | ||||
| } | } | ||||
| public function getSettingPanelKey() { | |||||
| return PhabricatorEmailDeliverySettingsPanel::PANELKEY; | |||||
| } | |||||
| protected function getSettingOrder() { | |||||
| return 200; | |||||
| } | |||||
| protected function getControlInstructions() { | protected function getControlInstructions() { | ||||
| return pht( | return pht( | ||||
| 'If you disable **Self Actions**, Phabricator will not notify '. | 'If you disable **Self Actions**, Phabricator will not notify '. | ||||
| 'you about actions you take.'); | 'you about actions you take.'); | ||||
| } | } | ||||
| public function getSettingDefaultValue() { | public function getSettingDefaultValue() { | ||||
| return self::VALUE_SEND_SELF; | return self::VALUE_SEND_SELF; | ||||
| Show All 10 Lines | |||||