| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function getCMSFields() |
||
| 20 | { |
||
| 21 | $fields = parent::getCMSFields(); |
||
| 22 | $fields->addFieldsToTab('Root.Validation', array( |
||
| 23 | DateField::create('MinDate', _t('UserDateField.MinDate', 'Minimum required date'))->setConfig('showcalendar', true), |
||
| 24 | DateField::create('MaxDate', _t('UserDateField.MaxDate', 'Maximum required date'))->setConfig('showcalendar', true) |
||
| 25 | )); |
||
| 26 | |||
| 27 | return $fields; |
||
| 28 | } |
||
| 29 | |||
| 53 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.