Differential D16023 Diff 38575 src/applications/settings/setting/PhabricatorEmailVarySubjectsSetting.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/setting/PhabricatorEmailVarySubjectsSetting.php
| <?php | <?php | ||||
| final class PhabricatorEmailVarySubjectsSetting | final class PhabricatorEmailVarySubjectsSetting | ||||
| extends PhabricatorSelectSetting { | extends PhabricatorSelectSetting { | ||||
| const SETTINGKEY = 'vary-subjects'; | const SETTINGKEY = 'vary-subjects'; | ||||
| const VALUE_VARY_SUBJECTS = 'true'; | const VALUE_VARY_SUBJECTS = 'true'; | ||||
| const VALUE_STATIC_SUBJECTS = 'false'; | const VALUE_STATIC_SUBJECTS = 'false'; | ||||
| public function getSettingName() { | public function getSettingName() { | ||||
| return pht('Vary Subjects'); | return pht('Vary Subjects'); | ||||
| } | } | ||||
| public function getSettingPanelKey() { | |||||
| return PhabricatorEmailFormatSettingsPanel::PANELKEY; | |||||
| } | |||||
| protected function getSettingOrder() { | |||||
| return 300; | |||||
| } | |||||
| protected function isEnabledForViewer(PhabricatorUser $viewer) { | |||||
| return PhabricatorMetaMTAMail::shouldMultiplexAllMail(); | |||||
| } | |||||
| protected function getControlInstructions() { | protected function getControlInstructions() { | ||||
| return pht( | return pht( | ||||
| 'With **Vary Subjects** enabled, most mail subject lines will include '. | 'With **Vary Subjects** enabled, most mail subject lines will include '. | ||||
| 'a brief description of their content, like `[Closed]` for a '. | 'a brief description of their content, like `[Closed]` for a '. | ||||
| 'notification about someone closing a task.'. | 'notification about someone closing a task.'. | ||||
| "\n\n". | "\n\n". | ||||
| "| Setting | Example Mail Subject\n". | "| Setting | Example Mail Subject\n". | ||||
| "|----------------------|----------------\n". | "|----------------------|----------------\n". | ||||
| Show All 22 Lines | |||||