FormConfFactory
in package
Read onlyYes
FinalYes
Tags
Table of Contents
Constants
- AUTOCOMPLETE_KN : mixed = 'autocomplete'
- DEFAULT_KN : mixed = 'default'
- DEFAULT_SLUG_KN : mixed = 'slug'
- ID_KN : mixed = 'id'
- IGNORE_KN : mixed = 'ignore'
- LABEL_KN : mixed = 'label'
- REQUIRED_KN : mixed = 'required'
- TYPE_KN : mixed = 'type'
- VALUES_KN : mixed = 'values'
Methods
- createConf() : array<string, FormFieldConf>
- createFormFieldConf() : FormFieldConf
- getCallback() : IDefaultCallable<string|int, mixed>
- getType() : FormFieldType
- getTypeFromModel() : FormFieldType
Constants
AUTOCOMPLETE_KN
public
mixed
AUTOCOMPLETE_KN
= 'autocomplete'
DEFAULT_KN
public
mixed
DEFAULT_KN
= 'default'
DEFAULT_SLUG_KN
public
mixed
DEFAULT_SLUG_KN
= 'slug'
ID_KN
public
mixed
ID_KN
= 'id'
IGNORE_KN
public
mixed
IGNORE_KN
= 'ignore'
LABEL_KN
public
mixed
LABEL_KN
= 'label'
REQUIRED_KN
public
mixed
REQUIRED_KN
= 'required'
TYPE_KN
public
mixed
TYPE_KN
= 'type'
VALUES_KN
public
mixed
VALUES_KN
= 'values'
Methods
createConf()
public
createConf(ArrayModel $model, array<string, fieldconfparams> $formConfParams) : array<string, FormFieldConf>
Parameters
- $model : ArrayModel
- $formConfParams : array<string, fieldconfparams>
Return values
array<string, FormFieldConf>createFormFieldConf()
private
createFormFieldConf(IModel|null $model, fieldconfparams $fieldConfParams) : FormFieldConf
Parameters
- $model : IModel|null
- $fieldConfParams : fieldconfparams
Return values
FormFieldConfgetCallback()
private
getCallback(array<string|int, mixed> $defaultConf) : IDefaultCallable<string|int, mixed>
Parameters
- $defaultConf : array<string|int, mixed>
Tags
Return values
IDefaultCallable<string|int, mixed>getType()
private
getType(fieldconfparams $fieldConfParams, IModel|null $model) : FormFieldType
Parameters
- $fieldConfParams : fieldconfparams
- $model : IModel|null
Return values
FormFieldTypegetTypeFromModel()
private
getTypeFromModel(IModel $model) : FormFieldType
Parameters
- $model : IModel