com\setasign\Konquadrat\Field

Xml

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

Class hierarchy

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

$languageManager

$messageList

$value

protected mixed AbstractField::$value

The field value

$xmlSchemaValidator


Static Methods

getClassNameByType()

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

Get the matching field class name for $type.

Parameters
$type : string
 

validateValue()

public static Xml::validateValue (
array $fieldConfig,
string $value
): void
Parameters
$fieldConfig : array
 
$value : string
 
Exceptions

Throws InvalidValueException


Methods

__construct()

public Xml::__construct (
\com\setasign\Konquadrat\LanguageManager $xmlSchemaValidator,
\com\setasign\Konquadrat\Object\MessageList $languageManager,
FieldContainer\FieldContainerInterface $messageList,
string $fieldContainer,
array $name,
array $fieldConfig
)
Parameters
$xmlSchemaValidator : \com\setasign\Konquadrat\LanguageManager
 
$languageManager : \com\setasign\Konquadrat\Object\MessageList
 
$messageList : FieldContainer\FieldContainerInterface
 
$fieldContainer : string

The field name

$name : array

The field configuration

$fieldConfig : array
 
Exceptions

Throws \com\setasign\Konquadrat\Exception

__clone()

public AbstractField::__clone (
void
): void
Exceptions

Throws \com\setasign\Konquadrat\Exception

__sleep()

public AbstractField::__sleep (
void
): void

callGetMethod()

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

Wrapper method to ensure the correct value type

Parameters
$getMethod : callable
 

checkValueLength()

protected Xml::checkValueLength (
string $value
): void
Parameters
$value : string
 
Exceptions

Throws \com\setasign\Konquadrat\Exception

getDefaultValue()

public AbstractField::getDefaultValue (
void
): ?mixed

Gets the default value

getFieldConfig()

public AbstractField::getFieldConfig (
void
): array

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.

parseValue()

protected Xml::parseValue (
mixed $value
): string

Parse the value to the correct type

Parameters
$value : mixed
 
Exceptions

Throws \com\setasign\Konquadrat\Exception

setValue()

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

Set the value

Parameters
$value : mixed|DefaultValue