com\setasign\Konquadrat\Field

DynamicFieldContainerField Class DynamicFieldContainerField

File: /Konquadrat/src/Field/DynamicFieldContainerField.php

Class hierarchy

Implements

Summary

Constants

ALLOW_NULL_VALUE

protected const AbstractField::ALLOW_NULL_VALUE = true

Properties

$dirty

protected bool AbstractField::$dirty = false

If this flag is true it couldn't correctly be loaded from the database.

$fieldConfig

$fieldContainer

$fieldFactory

$languageManager

$lastConfigChecksum

$messageList

$reader

$value

protected mixed AbstractField::$value

The field value


Static Methods

getClassNameByType()

public static AbstractField::getClassNameByType (
string $type
): string

Get the matching field class name for $type.

Parameters
$type: string
 

Methods

__clone()

public AbstractField::__clone (
void
): void
Exceptions

Throws \com\setasign\Konquadrat\Exception

__sleep()

public AbstractField::__sleep (
void
): void

callGetMethod()

public DynamicFieldContainerField::callGetMethod (
callable $getMethod
): mixed

Wrapper method to ensure the correct value type

Parameters
$getMethod: callable
 

getDefaultValue()

public AbstractField::getDefaultValue (
void
): ?mixed

Gets the default value

getFieldConfig()

public AbstractField::getFieldConfig (
void
): array

getFieldContainer()

Returns the field container.

This method will return the same instance of fieldContainerInterface until the configuration for this container is changed.

getFieldContainerConfig()

Returns the actual field container config

getLabel()

public AbstractField::getLabel (
void
): string

getName()

public AbstractField::getName (
void
): string

Return the name

getValue()

public AbstractField::getValue (
void
): ?mixed

Get the value

isDirty()

public AbstractField::isDirty (
void
): bool

Checks whether the field could correctly be loaded from the database.

parseFieldContainerConfig()

Parameters
$configString: string
 

parseValue()

protected DynamicFieldContainerField::parseValue (
mixed $value
): string
Parameters
$value: mixed
 
Exceptions

Throws \JsonException

readFieldContainerConfig()

resolve()

public DynamicFieldContainerField::resolve (
void
): mixed

setValue()

public AbstractField::setValue (
mixed|DefaultValue $value
): void

Set the value

Parameters
$value: mixed|DefaultValue