DefaultFormRenderer
class DefaultFormRenderer implements FormRenderer
Converts a Form into the HTML output.
Properties
array | $wrappers | /--- form.container |
|
protected Form | $form | ||
protected int | $counter |
Methods
string
renderBegin()
Renders form begin.
string
renderEnd()
Renders form end.
string
renderErrors(Control|null $control = null, bool $own = true)
Renders validation errors (per form or per control).
string
renderBody()
Renders form body.
string
string
string
renderPairMulti(array $controls)
Renders single visual row of multiple controls.
Html
Html
string|Html|null
string|Html
Html
getWrapper(string $name)
No description
mixed
getValue(string $name)
No description
Details
at line 132
string
render(Form $form, string|null $mode = null)
Provides complete form rendering.
at line 163
string
renderBegin()
Renders form begin.
at line 197
string
renderEnd()
Renders form end.
at line 217
string
renderErrors(Control|null $control = null, bool $own = true)
Renders validation errors (per form or per control).
at line 255
string
renderBody()
Renders form body.
at line 324
string
renderControls(Container|ControlGroup $parent)
Renders group of controls.
at line 370
string
renderPair(Control $control)
Renders single visual row.
at line 391
string
renderPairMulti(array $controls)
Renders single visual row of multiple controls.
at line 437
Html
renderLabel(Control $control)
Renders 'label' part of visual row of controls.
at line 457
Html
renderControl(Control $control)
Renders 'control' part of visual row of controls.
at line 514
protected string|Html|null
renderLabelElement(Control $control)
No description
at line 521
protected string|Html
renderControlElement(Control $control)
No description
at line 527
Html
getWrapper(string $name)
No description
at line 535
protected mixed
getValue(string $name)
No description
Traits
SmartObject