Class FieldsGroup
Responsibility: init, pre-dispatch and render group of common form controls, mostly input
controls. This class is not possible to instantiate, you need to extend this class to create own specific form control.
- MvcCore\Ext\Forms\Field implements MvcCore\Ext\Forms\IField uses MvcCore\Ext\Forms\Field\Props, MvcCore\Ext\Forms\Field\Getters, MvcCore\Ext\Forms\Field\Setters, MvcCore\Ext\Forms\Field\Rendering
-
MvcCore\Ext\Forms\FieldsGroup implements MvcCore\Ext\Forms\Fields\IVisibleField, MvcCore\Ext\Forms\Fields\ILabel, MvcCore\Ext\Forms\Fields\IOptions, MvcCore\Ext\Forms\Fields\IMultiple, MvcCore\Ext\Forms\IFieldsGroup uses MvcCore\Ext\Forms\Field\Props\VisibleField, MvcCore\Ext\Forms\Field\Props\Label, MvcCore\Ext\Forms\Field\Props\Options, MvcCore\Ext\Forms\Field\Props\GroupLabelCssClasses, MvcCore\Ext\Forms\Field\Props\GroupLabelAttrs
public static
|
|
public
string[]|string|null
|
|
public
|
#
SetValue( float[]|int[]|string[]|float|integer|string|null $value )
Set form group controls value, in most cases - it could be an array with types,
which are possible simply to convert into array of strings. |
public
boolean
|
#
GetMultiple( )
Field group is always marked as multiple value control. This function
always return |
public
|
#
SetMultiple( boolean $multiple = TRUE )
Field group is always marked as multiple value control. This function
does nothing, because multiple option has to be |
public
|
#
SetForm(
This INTERNAL method is called from |
public
|
#
PreDispatch( )
This INTERNAL method is called from |
public
string
|
#
RenderNaturally( )
This INTERNAL method is called from |
public
string
|
#
RenderControlInsideLabel( )
This INTERNAL method is called from |
public
string
|
#
RenderControl( )
This INTERNAL method is called from |
public
string
|
#
RenderLabel( )
This INTERNAL method is called from |
public
string
|
#
RenderControlItem( string $key, string|array $option )
This INTERNAL method is called from |
protected
array
|
#
renderControlItemCompleteAttrsClassesAndText( string $key, string|array & $option )
Complete and return semi-finished strings for rendering by field key and option: - Label text string. - Label attributes string. - Control attributes string. |
AddOptions(),
GetFlattenOptions(),
GetOptions(),
GetTranslateOptions(),
SetOptions(),
SetTranslateOptions()
|
AddGroupLabelAttr(),
AddGroupLabelCssClasses(),
GetGroupLabelAttrs(),
GetGroupLabelCssClasses(),
SetGroupLabelAttrs(),
SetGroupLabelCssClasses()
|
AddOptions(),
GetFlattenOptions(),
GetOptions(),
GetTranslateOptions(),
SetOptions(),
SetTranslateOptions()
|
AddGroupLabelCssClasses(),
GetGroupLabelCssClasses(),
SetGroupLabelCssClasses()
|
AddGroupLabelAttr(),
GetGroupLabelAttrs(),
SetGroupLabelAttrs()
|
AUTOFOCUS_DUPLICITY_EXCEPTION,
AUTOFOCUS_DUPLICITY_QUIETLY_SET_NEW,
AUTOFOCUS_DUPLICITY_UNSET_OLD_SET_NEW,
LABEL_SIDE_LEFT,
LABEL_SIDE_RIGHT
|
protected
string|null
|
$type
Form group pseudo control type, unique type across all form field types. |
#
NULL
|
protected
string[]|null
|
$value
Form group controls value, in most cases it's an array of strings.
For extended class |
#
[]
|
protected static
string
|
$templates
Standard field template strings for natural
rendering - |
#
[
'label' => '<label for="{id}"{attrs}>{label}</label>',
'control' => '<input id="{id}" name="{name}" type="{type}" value="{value}"{checked}{attrs} />',
'togetherLabelLeft' => '<label for="{id}"{attrs}><span>{label}</span>{control}</label>',
'togetherLabelRight'=> '<label for="{id}"{attrs}>{control}<span>{label}</span></label>',
]
|
$controlAttrs,
$cssClasses,
$cssSupportingFile,
$declaredProtectedProperties,
$errors,
$form,
$id,
$jsClassName,
$jsSupportingFile,
$name,
$title,
$translate,
$translateTitle,
$validators,
$view,
$viewScript
|
$label,
$labelAttrs,
$labelSide,
$renderMode,
$translateLabel
|
$flattenOptions,
$options,
$translateOptions
|
$groupLabelCssClasses
|
$groupLabelAttrs
|