TableDate
extends ElementFieldHandler
in package
Table of Contents
- EVENT_REGISTER_TARGETS = 'register-targets'
- $data : mixed
- $element : Element
- $fancyValue : mixed
- $field : Field
- $name : string
- $rawValue : mixed
- $value : mixed
- getDbValue() : array<string|int, mixed>
- Get the value to be stored in database.
- getDirty() : array<string|int, mixed>
- Get dirty values compared to another field handler
- getTargets() : array<string|int, mixed>
- Get the targets this field handler applies to, can be modified through an event
- getTemplate() : string|null
- Get the template used to render this field description
- hasFancyValue() : bool
- Does this handler defines a fancy value
- init() : mixed
- isDirty() : bool
- Is the value dirty compared to another field handler
- _getTargets() : array<string|int, mixed>
- Get the targets this field handler applies to
Constants
EVENT_REGISTER_TARGETS
public
mixed
EVENT_REGISTER_TARGETS
= 'register-targets'
Properties
$data
public
mixed
$data
Tags
$element
public
Element
$element
$fancyValue
public
mixed
$fancyValue
$field
public
Field
$field
$name
public
string
$name
$rawValue
public
mixed
$rawValue
$value
public
mixed
$value
Methods
getDbValue()
Get the value to be stored in database.
public
getDbValue(string $valueKey) : array<string|int, mixed>
$valueKey is either 'f' for a from value, or 't' for a to value If this handler has a fancy value, the db value will also contain 'ff' or 'tf'
Parameters
- $valueKey : string
Return values
array<string|int, mixed> —getDirty()
Get dirty values compared to another field handler
public
getDirty(FieldHandler $handler) : array<string|int, mixed>
Parameters
- $handler : FieldHandler
Return values
array<string|int, mixed> —getTargets()
Get the targets this field handler applies to, can be modified through an event
public
static getTargets() : array<string|int, mixed>
Return values
array<string|int, mixed> —getTemplate()
Get the template used to render this field description
public
static getTemplate() : string|null
Return values
string|null —hasFancyValue()
Does this handler defines a fancy value
public
hasFancyValue() : bool
Return values
bool —init()
public
init() : mixed
Tags
Return values
mixed —isDirty()
Is the value dirty compared to another field handler
public
isDirty(FieldHandler $handler) : bool
Parameters
- $handler : FieldHandler
Return values
bool —_getTargets()
Get the targets this field handler applies to
protected
static _getTargets() : array<string|int, mixed>