Bigfork\SilverStripeSimpleDateField\SimpleDateField
Synopsis
class SimpleDateField
extends FormField
{
- // constants
- const DMY = 1;
- const YMD = 2;
- const MDY = 3;
- // members
- protected $schemaDataType = FormField::SCHEMA_DATA_TYPE_DATE;
- protected FieldList $children;
- protected FormField $dayField;
- protected FormField $monthField;
- protected FormField $yearField;
- protected $rawValue;
- protected bool $isSubmittingValue = false;
- // methods
- public void __construct()
- public $this setValue()
- public $this setSubmittedValue()
- public $this setChildren()
- public FieldList getChildren()
- public $this setDayField()
- public FormField getDayField()
- public $this setMonthField()
- public FormField getMonthField()
- public $this setYearField()
- public FormField getYearField()
- protected bool isEmpty()
- public void validate()
- public void setMessage()
- protected bool isValidISODate()
Hierarchy
Extends
- SilverStripe\Forms\FormField
Constants
Name | Value |
---|---|
DMY | 1 |
YMD | 2 |
MDY | 3 |
Members
protected
- $children — SilverStripe\Forms\FieldList
- $dayField — SilverStripe\Forms\FormField
- $isSubmittingValue — Bigfork\SilverStripeSimpleDateField\bool
- $monthField — SilverStripe\Forms\FormField
- $rawValue — string
- $schemaDataType
- $yearField — SilverStripe\Forms\FormField