Trait InternalProps
Trait for class MvcCore\Ext\Form
containing all internal properties.
Direct Known Users
MvcCore\Ext\Form
protected
|
$submitFields
Internal array with all configured submit buttons to recognize starting result state in submit processing by presented button in params array. |
#
[]
|
protected
int[]
|
$customResultStates
Internal array to store any configured custom result state values for submit buttons or for submit inputs. Key in array are field names, values are custom submit start result state values, if form is submitted by named button. |
#
[]
|
protected
boolean
|
$formTagRendergingStatus
This is INTERNAL property for rendering fields.
Value |
#
FALSE
|
protected
|
$validators
Validators instances keyed by validators ending
class names, created during |
#
[]
|
protected
integer
|
$fieldsAutoTabIndex
Automatically growing tab-index value for fields with tab-index in |
#
0
|
protected
boolean
|
$translate
Internal flag to quickly know if form fields will be translated or not.
Automatically completed to |
#
FALSE
|
protected static
string[]
|
$fileSizeUnits
File size units for internal conversions. |
#
['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']
|
protected static
string
|
$sessionClass
Cached value from |
#
NULL
|
protected static
string
|
$toolClass
Cached value from |
#
NULL
|
protected static
array
|
$allFormsSessions
Static cache with references to all created form session namespace objects to not create them and configure them every time they are used. |
#
[]
|
protected static
array
|
$allJsSupportFiles
Temporary collection with js support files to add into HTML output after rendered form(s). It could be added directly after rendered form or by external renderer, doesn't matter. This serves only for purpose - how to determinate to add every supporting javascript for all it's field types only once. Keys are relative javascript support file paths and values are simple dummy boolean values. |
#
[]
|
protected static
array
|
$allCssSupportFiles
Temporary collection with css support files to add into HTML output after rendered form(s). It could be added directly after rendered form or by external renderer, doesn't matter. This serves only for purpose - how to determinate to add every supporting css for all it's field types only once. Keys are relative css support file paths and values are simple dummy boolean values. |
#
[]
|
protected static
array[]
|
$csrfErrorHandlers
Collection with arrays, where first record is |
#
[]
|
protected static
string
|
$jsBaseSupportFile
If there is necessary to add into HTML response after rendered form any supporting javascript file, there is also necessary to add base form supporting javascript - this is relative path where the base supporting javascript is located. |
#
'__MVCCORE_FORM_ASSETS_DIR__/mvccore-form.js'
|
protected static
array
|
$defaultErrorMessages
Default (not translated) error messages with replacements for field names and more specific info to tell the user what happened or what to do more. |
#
[
IError::REQUIRED => "Field `{0}` is required.",
IError::EMPTY_CONTENT => "Sent data are empty.",
IError::MAX_POST_SIZE => "Sent data exceeds the limit of {0}.",
IError::CSRF => "Form hash expired, please submit the form again.",
]
|
protected static
|
$instances
Form instances storage under it's form id strings. Key is form id, value is form instance. |
#
[]
|