Vizy
extends ElementFieldHandler
in package
Tags
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() : void
- isDirty() : bool
- _getTargets() : array<string|int, mixed>
- buildBlockValue() : array<string|int, mixed>
- Build the value for one block
- buildDirty() : array<string|int, mixed>
- Build dirty values
- buildDirtyBlocks() : array<string|int, mixed>
- Build dirty nodes
- buildValues() : array<string|int, mixed>
- Build the value
- matchBlock() : array<string|int, mixed>
- Match a block with an array of old blocks.
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
$_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
Return values
array<string|int, mixed> —getDirty()
public
getDirty(FieldHandler $handler) : array<string|int, mixed>
Parameters
- $handler : FieldHandler
Tags
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
Return values
string|null —hasFancyValue()
Does this handler defines a fancy value
public
hasFancyValue() : bool
Return values
bool —init()
public
init() : void
Tags
Return values
void —isDirty()
public
isDirty(FieldHandler $handler) : bool
Parameters
- $handler : FieldHandler
Tags
Return values
bool —_getTargets()
protected
static _getTargets() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —buildBlockValue()
Build the value for one block
protected
buildBlockValue(VizyBlock $block) : array<string|int, mixed>
Parameters
- $block : VizyBlock
Return values
array<string|int, mixed> —buildDirty()
Build dirty values
protected
buildDirty(array<string|int, mixed> $newBlocks, array<string|int, mixed> $oldBlocks) : array<string|int, mixed>
Parameters
- $newBlocks : array<string|int, mixed>
- $oldBlocks : array<string|int, mixed>
Return values
array<string|int, mixed> —buildDirtyBlocks()
Build dirty nodes
protected
buildDirtyBlocks(array<string|int, mixed> $newBlocks, array<string|int, mixed> $oldBlocks) : array<string|int, mixed>
Parameters
- $newBlocks : array<string|int, mixed>
- $oldBlocks : array<string|int, mixed>
Return values
array<string|int, mixed> —buildValues()
Build the value
protected
buildValues() : array<string|int, mixed>
Return values
array<string|int, mixed> —matchBlock()
Match a block with an array of old blocks.
protected
matchBlock(array<string|int, mixed> $block, array<string|int, mixed> $oldBlocks, array<string|int, mixed> $ignore) : array<string|int, mixed>
If the block is if type 'block' we'll match by id, otherwise we simply match. returns the block matched and the index in the old blocks
Parameters
- $block : array<string|int, mixed>
- $oldBlocks : array<string|int, mixed>
- $ignore : array<string|int, mixed>