DateField extends DatasetField
Table of Contents
Methods
- __construct() : mixed
- getCode() : string
- Return field code
- getFormatted() : array<string|int, mixed>
- Return prepared fields
- setCallback() : $this
- Set separator for concatenation field values. It`s comma by default
- setDataset() : $this
- setDescription() : $this
- Set field description
- setDescriptionFull() : $this
- Set field description
- setJoin() : $this
- setMetric() : $this
- Mark field as metric. It`s false by default
- setMultiple() : $this
- Mark field as multiple for concatenation field values. It`s false by default
- setName() : $this
- Add custom selection name
- setPrimary() : $this
- Mark field as primary. It`s false by default.
- setSeparator() : $this
- Set separator for concatenation field values. It`s comma by default
- setSystem() : $this
- Mark field as `system` to differentiate from user fields. It`s true by default.
Methods
__construct()
public
__construct(string $code[, string|null $name = null ][, Dataset|null $dataset = null ]) : mixed
Parameters
- $code : string
- $name : string|null = null
- $dataset : Dataset|null = null
getCode()
Return field code
public
getCode() : string
Return values
stringgetFormatted()
Return prepared fields
public
getFormatted() : array<string|int, mixed>
Return values
array<string|int, mixed>setCallback()
Set separator for concatenation field values. It`s comma by default
public
setCallback(callable $callback) : $this
Parameters
- $callback : callable
Return values
$thissetDataset()
public
setDataset(Dataset $dataset) : $this
Parameters
- $dataset : Dataset
Return values
$thissetDescription()
Set field description
public
setDescription(string $description) : $this
Parameters
- $description : string
Return values
$thissetDescriptionFull()
Set field description
public
setDescriptionFull(string $descriptionFull) : $this
Parameters
- $descriptionFull : string
Return values
$thissetJoin()
public
setJoin(JoinSelection $join) : $this
Parameters
- $join : JoinSelection
Return values
$thissetMetric()
Mark field as metric. It`s false by default
public
setMetric([bool $metric = true ]) : $this
Parameters
- $metric : bool = true
Return values
$thissetMultiple()
Mark field as multiple for concatenation field values. It`s false by default
public
setMultiple([bool $multiple = true ]) : $this
Parameters
- $multiple : bool = true
Return values
$thissetName()
Add custom selection name
public
setName(string $name) : $this
Parameters
- $name : string
Return values
$thissetPrimary()
Mark field as primary. It`s false by default.
public
setPrimary([bool $isPrimary = true ]) : $this
Parameters
- $isPrimary : bool = true
Return values
$thissetSeparator()
Set separator for concatenation field values. It`s comma by default
public
setSeparator(string $separator) : $this
Parameters
- $separator : string
Return values
$thissetSystem()
Mark field as `system` to differentiate from user fields. It`s true by default.
public
setSystem([bool $isSystem = true ]) : $this
Parameters
- $isSystem : bool = true