Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?php |
2 | /* | |
3 | +--------------------------------------------------------------------+ | |
bc77d7c0 | 4 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 5 | | | |
bc77d7c0 TO |
6 | | This work is published under the GNU AGPLv3 license with some | |
7 | | permitted exceptions and without any warranty. For full license | | |
8 | | and copyright information, see https://civicrm.org/licensing | | |
6a488035 | 9 | +--------------------------------------------------------------------+ |
d25dd0ee | 10 | */ |
6a488035 TO |
11 | |
12 | /** | |
13 | * | |
14 | * @package CRM | |
ca5cec67 | 15 | * @copyright CiviCRM LLC https://civicrm.org/licensing |
6a488035 TO |
16 | */ |
17 | ||
18 | /** | |
ce064e4f | 19 | * This class generates form components for Date Formatting. |
6a488035 TO |
20 | */ |
21 | class CRM_Admin_Form_Setting_Date extends CRM_Admin_Form_Setting { | |
22 | ||
be2fb01f | 23 | public $_settings = [ |
a6c28496 TO |
24 | 'dateformatDatetime' => CRM_Core_BAO_Setting::LOCALIZATION_PREFERENCES_NAME, |
25 | 'dateformatFull' => CRM_Core_BAO_Setting::LOCALIZATION_PREFERENCES_NAME, | |
26 | 'dateformatPartial' => CRM_Core_BAO_Setting::LOCALIZATION_PREFERENCES_NAME, | |
27 | 'dateformatYear' => CRM_Core_BAO_Setting::LOCALIZATION_PREFERENCES_NAME, | |
28 | 'dateformatTime' => CRM_Core_BAO_Setting::LOCALIZATION_PREFERENCES_NAME, | |
37846436 | 29 | 'dateformatFinancialBatch' => CRM_Core_BAO_Setting::LOCALIZATION_PREFERENCES_NAME, |
080ee9d3 | 30 | 'dateformatshortdate' => CRM_Core_BAO_Setting::LOCALIZATION_PREFERENCES_NAME, |
6d9ac92c | 31 | 'weekBegins' => CRM_Core_BAO_Setting::LOCALIZATION_PREFERENCES_NAME, |
630d30ec TO |
32 | 'dateInputFormat' => CRM_Core_BAO_Setting::LOCALIZATION_PREFERENCES_NAME, |
33 | 'timeInputFormat' => CRM_Core_BAO_Setting::LOCALIZATION_PREFERENCES_NAME, | |
439b55df | 34 | 'fiscalYearStart' => CRM_Core_BAO_Setting::LOCALIZATION_PREFERENCES_NAME, |
be2fb01f | 35 | ]; |
6d9ac92c | 36 | |
6a488035 | 37 | /** |
eceb18cc | 38 | * Build the form object. |
6a488035 TO |
39 | */ |
40 | public function buildQuickForm() { | |
483cfbc4 | 41 | $this->setTitle(ts('Settings - Date')); |
6a488035 | 42 | |
6a488035 TO |
43 | parent::buildQuickForm(); |
44 | } | |
96025800 | 45 | |
6a488035 | 46 | } |