Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/setting/PhabricatorDateFormatSetting.php
| <?php | <?php | ||||
| final class PhabricatorDateFormatSetting | final class PhabricatorDateFormatSetting | ||||
| extends PhabricatorSelectSetting { | extends PhabricatorSelectSetting { | ||||
| const SETTINGKEY = 'date-format'; | const SETTINGKEY = 'date-format'; | ||||
| const VALUE_FORMAT_ISO = 'Y-m-d'; | const VALUE_FORMAT_ISO = 'Y-m-d'; | ||||
| const VALUE_FORMAT_US = 'n/j/Y'; | const VALUE_FORMAT_US = 'n/j/Y'; | ||||
| const VALUE_FORMAT_EUROPE = 'd-m-Y'; | const VALUE_FORMAT_EUROPE = 'd-m-Y'; | ||||
| public function getSettingName() { | public function getSettingName() { | ||||
| return pht('Date Format'); | return pht('Date Format'); | ||||
| } | } | ||||
| public function getSettingPanelKey() { | |||||
| return PhabricatorDateTimeSettingsPanel::PANELKEY; | |||||
| } | |||||
| protected function getSettingOrder() { | |||||
| return 200; | |||||
| } | |||||
| protected function getControlInstructions() { | protected function getControlInstructions() { | ||||
| return pht( | return pht( | ||||
| 'Select the format you prefer for editing dates.'); | 'Select the format you prefer for editing dates.'); | ||||
| } | } | ||||
| public function getSettingDefaultValue() { | public function getSettingDefaultValue() { | ||||
| return self::VALUE_FORMAT_ISO; | return self::VALUE_FORMAT_ISO; | ||||
| } | } | ||||
| Show All 11 Lines | |||||