Craft Activity (2.x)

Tags extends ElementsFieldHandler
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
hasFancyValue()  : bool
Does this handler defines a fancy value
init()  : void
isDirty()  : bool
Is the value dirty compared to another field handler
_getTargets()  : array<string|int, mixed>

Constants

EVENT_REGISTER_TARGETS

public mixed EVENT_REGISTER_TARGETS = 'register-targets'

Properties

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()

public static getTemplate() : string|null
Tags
inheritDoc
Return values
string|null

hasFancyValue()

Does this handler defines a fancy value

public hasFancyValue() : bool
Return values
bool

_getTargets()

protected static _getTargets() : array<string|int, mixed>
Tags
inheritDoc
Return values
array<string|int, mixed>

Search results