Craft Activity (1.x)

Table 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
$_dirty  : array<string|int, mixed>
getDbValue()  : array<string|int, mixed>
Get the value to be stored in database.
getDirty()  : array<string|int, mixed>
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()  : mixed
isDirty()  : bool
_getTargets()  : array<string|int, mixed>
buildDirty()  : array<string|int, mixed>
Build dirty values
buildValues()  : array<string|int, mixed>
Build each rows as field handlers
getHandler()  : FieldHandler
Get the handler for a column

Constants

EVENT_REGISTER_TARGETS

public mixed EVENT_REGISTER_TARGETS = 'register-targets'

Properties

$_dirty

protected array<string|int, mixed> $_dirty

Methods

getDbValue()

Get the value to be stored in database.

public getDbValue(string $valueKey) : array<string|int, mixed>
Parameters
$valueKey : string
Tags
inheritDoc
Return values
array<string|int, mixed>

getDirty()

public getDirty(FieldHandler $handler) : array<string|int, mixed>
Parameters
$handler : FieldHandler
Tags
inheritDoc
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

init()

public init() : mixed
Tags
inheritDoc
Return values
mixed

_getTargets()

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

buildDirty()

Build dirty values

protected buildDirty(array<string|int, mixed> $newValue, array<string|int, mixed> $oldValue) : array<string|int, mixed>
Parameters
$newValue : array<string|int, mixed>
$oldValue : array<string|int, mixed>
Return values
array<string|int, mixed>

buildValues()

Build each rows as field handlers

protected buildValues() : array<string|int, mixed>
Return values
array<string|int, mixed>

getHandler()

Get the handler for a column

protected getHandler(string $handle, mixed $value) : FieldHandler
Parameters
$handle : string
$value : mixed
Return values
FieldHandler

Search results