Differential D16025 Diff 38577 src/applications/settings/setting/PhabricatorConpherenceNotificationsSetting.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/setting/PhabricatorConpherenceNotificationsSetting.php
| Show All 26 Lines | return PhabricatorApplication::isClassInstalledForViewer( | ||||
| $viewer); | $viewer); | ||||
| } | } | ||||
| public function getSettingDefaultValue() { | public function getSettingDefaultValue() { | ||||
| return self::VALUE_CONPHERENCE_EMAIL; | return self::VALUE_CONPHERENCE_EMAIL; | ||||
| } | } | ||||
| protected function getSelectOptions() { | protected function getSelectOptions() { | ||||
| return self::getOptionsMap(); | |||||
| } | |||||
| public static function getSettingLabel($key) { | |||||
| $labels = self::getOptionsMap(); | |||||
| return idx($labels, $key, pht('Unknown ("%s")', $key)); | |||||
| } | |||||
| private static function getOptionsMap() { | |||||
| return array( | return array( | ||||
| self::VALUE_CONPHERENCE_EMAIL => pht('Send Email'), | self::VALUE_CONPHERENCE_EMAIL => pht('Send Email'), | ||||
| self::VALUE_CONPHERENCE_NOTIFY => pht('Send Notifications'), | self::VALUE_CONPHERENCE_NOTIFY => pht('Send Notifications'), | ||||
| ); | ); | ||||
| } | } | ||||
| } | } | ||||