Documentation

FormConfFactory
in package

Read onlyYes
FinalYes
Tags
todo

Create FormConf class? Inheriting AppObject or using traits?

phpstan-import-type

fieldvalues from FormFieldConf

phpstan-type

fieldconfparams array{ label: string, autocomplete?: null|string, default?: array{slug: non-decimal-int-string}, id?: string, ignore?: bool, required?: bool, type?: string, values?: null|fieldvalues, }

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

Methods

getCallback()

private getCallback(array<string|int, mixed> $defaultConf) : IDefaultCallable<string|int, mixed>
Parameters
$defaultConf : array<string|int, mixed>
Tags
todo

Type hint with callable instead of Closure?

Return values
IDefaultCallable<string|int, mixed>
On this page

Search results