DateField extends AbstractField
Class DateField
Table of Contents
Methods
- __construct() : mixed
- DateField constructor.
- applyFilter() : void
- Apply filter.
- create() : static
- DateField constructor.
- fetchFieldValue() : array<string|int, mixed>
- Fetch field value.
- getDays() : array<string|int, int>
- Get days.
- getFilterKey() : string
- Get filter key.
- getFrom() : null|string
- Get date from.
- getId() : string
- Get id.
- getMonths() : array<string|int, int>
- Get months.
- getTo() : null|string
- Get date to.
- getValue() : string
- Get value.
- getYears() : array<string|int, int>
- Get years.
Methods
__construct()
DateField constructor.
public
__construct(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>
-
Data.
applyFilter()
Apply filter.
public
applyFilter([array<string|int, mixed> &$filter = array() ]) : void
Parameters
- $filter : array<string|int, mixed> = array()
-
Filter.
create()
DateField constructor.
public
static create(array<string|int, mixed> $data) : static
Parameters
- $data : array<string|int, mixed>
-
Data.
Return values
staticfetchFieldValue()
Fetch field value.
public
fetchFieldValue(array<string|int, mixed> $filterFields) : array<string|int, mixed>
Parameters
- $filterFields : array<string|int, mixed>
-
Filter fields.
Return values
array<string|int, mixed>getDays()
Get days.
public
getDays() : array<string|int, int>
Return values
array<string|int, int>getFilterKey()
Get filter key.
public
getFilterKey() : string
Return values
stringgetFrom()
Get date from.
public
getFrom([string|null $defaultValue = null ]) : null|string
Parameters
- $defaultValue : string|null = null
-
Default value.
Return values
null|stringgetId()
Get id.
public
getId() : string
Return values
stringgetMonths()
Get months.
public
getMonths() : array<string|int, int>
Return values
array<string|int, int>getTo()
Get date to.
public
getTo([string|null $defaultValue = null ]) : null|string
Parameters
- $defaultValue : string|null = null
-
Default value.
Return values
null|stringgetValue()
Get value.
public
getValue([mixed $defaultValue = null ]) : string
Parameters
- $defaultValue : mixed = null
-
Default value.
Return values
stringgetYears()
Get years.
public
getYears() : array<string|int, int>