$_elements
$_elements : array<mixed,\Fuman_InputType_Renderer_Abstract>
Form model
$_elements : array<mixed,\Fuman_InputType_Renderer_Abstract>
$_handler : \Fuman_Form_Handler
$_validators : array<mixed,\Fuman_Validate_Abstract>
$_affectedRecord : \Fuman_Db_Record
getElements() : array<mixed,\Fuman_InputType_Renderer_Abstract>
Gets elements
getElementsForRendering() : \Fuman_Response_Data
Gets elements for rendering
initByRequest(\Fuman_Request $request) : void
Init by request
| \Fuman_Request | $request |
getHandler() : \Fuman_Form_Handler
Get handler
setHandler(\Fuman_Form_Handler $handler)
Sets handler
| \Fuman_Form_Handler | $handler |
getElement(string $key) : \Fuman_InputType_Renderer_Abstract
Get element
| string | $key |
getValidators() : array<mixed,\Fuman_Validate_Abstract>
Get validator
addValidator(string $key, \Fuman_Validate_Abstract $validator)
Add validator
| string | $key | |
| \Fuman_Validate_Abstract | $validator |
getValidatorsForElement(string $key) : array<mixed,\Fuman_Validate_Abstract>
Get validators for element
| string | $key |
addElement(string $key, \Fuman_Response_Data $element, boolean $isRenderElement = true, null $defaultValue = null) : \Fuman_Response_Data|\Fuman_InputType_Element
Add element
| string | $key | |
| \Fuman_Response_Data | $element | |
| boolean | $isRenderElement | |
| null | $defaultValue |
create(string $key, string $label, \Fuman_Form_Abstract $formElement, array $validators = null, boolean $renderElement = true, string|null $defaultValue = null) : \Fuman_InputType_Element
Create
| string | $key | |
| string | $label | |
| \Fuman_Form_Abstract | $formElement | |
| array | $validators | |
| boolean | $renderElement | |
| string|null | $defaultValue |
createElement(string|null $translationPrefix, string $key, string $elementClassName, array|null $validators = null, boolean $renderElement = true, string|null $defaultValue = null) : \Fuman_InputType_Element
Create element
| string|null | $translationPrefix | (if null, the internal translation prefix and addon will be used) |
| string | $key | |
| string | $elementClassName | |
| array|null | $validators | |
| boolean | $renderElement | |
| string|null | $defaultValue |
getAffectedRecord() : \Fuman_Db_Record
Get affected record
setAffectedRecord(\Fuman_Db_Record $record)
Set affected record
| \Fuman_Db_Record | $record |