3 final class PhabricatorOlderInlinesSetting
4 extends PhabricatorSelectSetting
{
6 const SETTINGKEY
= 'diff-ghosts';
8 const VALUE_GHOST_INLINES_ENABLED
= 'default';
9 const VALUE_GHOST_INLINES_DISABLED
= 'disabled';
11 public function getSettingName() {
12 return pht('Show Older Inlines');
15 protected function getSettingOrder() {
19 public function getSettingPanelKey() {
20 return PhabricatorDiffPreferencesSettingsPanel
::PANELKEY
;
23 protected function getControlInstructions() {
25 'When a revision is updated, this software attempts to bring inline '.
26 'comments on the older version forward to the new changes. You can '.
27 'disable this behavior if you prefer comments stay anchored in one '.
31 public function getSettingDefaultValue() {
32 return self
::VALUE_GHOST_INLINES_ENABLED
;
35 protected function getSelectOptions() {
37 self
::VALUE_GHOST_INLINES_ENABLED
=> pht('Enabled'),
38 self
::VALUE_GHOST_INLINES_DISABLED
=> pht('Disabled'),