HudhaifaS\Forms\GreatDateField
- Author: Hudhaifa Shatnawi <hudhaifa.shatnawi@gmail.com>
Synopsis
class GreatDateField
extends FormField
{
- // members
- protected FormField $fieldCalendar = NULL;
- protected NumericField $fieldYear = NULL;
- protected NumericField $fieldMonth = NULL;
- protected NumericField $fieldDay = NULL;
- // methods
- public void __construct()
- public HTMLText Field()
- public void setValue()
- public void saveInto()
- public void performReadonlyTransformation()
- public void setReadonly()
- public void setDisabled()
- public bool validate()
Hierarchy
Extends
- SilverStripe\Forms\FormField
Tasks
Line | Task |
---|---|
160+ | Implement removal of readonly state with $bool=false |
160+ | Set readonly state whenever field is recreated, e.g. in setAllowedCurrencies() |
Members
protected
- $fieldCalendar — SilverStripe\Forms\FormField
- $fieldDay — SilverStripe\Forms\NumericField
- $fieldMonth — SilverStripe\Forms\NumericField
- $fieldYear — SilverStripe\Forms\NumericField
Methods
public
- __construct()
- Field()
- performReadonlyTransformation() — Returns a readonly version of this field.
- saveInto()
- setDisabled()
- setReadonly()
- setValue()
- validate() — Validate this field