Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/setting/PhabricatorTimeFormatSetting.php
| <?php | <?php | ||||
| final class PhabricatorTimeFormatSetting | final class PhabricatorTimeFormatSetting | ||||
| extends PhabricatorSelectSetting { | extends PhabricatorSelectSetting { | ||||
| const SETTINGKEY = 'time-format'; | const SETTINGKEY = 'time-format'; | ||||
| const VALUE_FORMAT_12HOUR = 'g:i A'; | const VALUE_FORMAT_12HOUR = 'g:i A'; | ||||
| const VALUE_FORMAT_24HOUR = 'H:i'; | const VALUE_FORMAT_24HOUR = 'H:i'; | ||||
| public function getSettingName() { | public function getSettingName() { | ||||
| return pht('Time Format'); | return pht('Time Format'); | ||||
| } | } | ||||
| public function getSettingPanelKey() { | |||||
| return PhabricatorDateTimeSettingsPanel::PANELKEY; | |||||
| } | |||||
| protected function getSettingOrder() { | |||||
| return 300; | |||||
| } | |||||
| protected function getControlInstructions() { | protected function getControlInstructions() { | ||||
| return pht( | return pht( | ||||
| 'Select the format you prefer for editing and displaying time.'); | 'Select the format you prefer for editing and displaying time.'); | ||||
| } | } | ||||
| public function getSettingDefaultValue() { | public function getSettingDefaultValue() { | ||||
| return self::VALUE_FORMAT_12HOUR; | return self::VALUE_FORMAT_12HOUR; | ||||
| } | } | ||||
| Show All 10 Lines | |||||