Site
extends DefaultHandler
in package
Table of Contents
- EVENT_REGISTER_TARGETS = 'register-targets'
- $data : mixed
- $fancyValue : 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
- init() : mixed
- isDirty() : bool
- Is the value dirty compared to another field handler
- _getTargets() : array<string|int, mixed>
- getSiteName() : string
- Get a site name by uid
Constants
EVENT_REGISTER_TARGETS
public
mixed
EVENT_REGISTER_TARGETS
= 'register-targets'
Properties
$data
public
mixed
$data
Tags
$fancyValue
public
mixed
$fancyValue
$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()
public
hasFancyValue() : bool
Tags
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()
protected
static _getTargets() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getSiteName()
Get a site name by uid
protected
getSiteName(string|null $uid) : string
Parameters
- $uid : string|null