Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / settings / setting / PhabricatorEmailVarySubjectsSetting.php
blob1c088d9411bf81eef00169baea9b60f2cd300bd7
1 <?php
3 final class PhabricatorEmailVarySubjectsSetting
4 extends PhabricatorSelectSetting {
6 const SETTINGKEY = 'vary-subject';
8 const VALUE_VARY_SUBJECTS = 'vary';
9 const VALUE_STATIC_SUBJECTS = 'static';
11 public function getSettingName() {
12 return pht('Vary Subjects');
15 public function getSettingPanelKey() {
16 return PhabricatorEmailFormatSettingsPanel::PANELKEY;
19 protected function getSettingOrder() {
20 return 300;
23 protected function getControlInstructions() {
24 return pht(
25 'With **Vary Subjects** enabled, most mail subject lines will include '.
26 'a brief description of their content, like `[Closed]` for a '.
27 'notification about someone closing a task.'.
28 "\n\n".
29 "| Setting | Example Mail Subject\n".
30 "|----------------------|----------------\n".
31 "| Vary Subjects | ".
32 "`[Maniphest] [Closed] T123: Example Task`\n".
33 "| Do Not Vary Subjects | ".
34 "`[Maniphest] T123: Example Task`\n".
35 "\n".
36 'This can make mail more useful, but some clients have difficulty '.
37 'threading these messages. Disabling this option may improve '.
38 'threading at the cost of making subject lines less useful.');
41 public function getSettingDefaultValue() {
42 return self::VALUE_VARY_SUBJECTS;
45 protected function getSelectOptions() {
46 return array(
47 self::VALUE_VARY_SUBJECTS => pht('Enable Vary Subjects'),
48 self::VALUE_STATIC_SUBJECTS => pht('Disable Vary Subjects'),