DefaultFormRenderer
class DefaultFormRenderer implements FormRenderer
Converts a Form into the HTML output.
Properties
$wrappers | /--- form.container |
||
protected | $form | ||
protected | $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
renderControls(ControlGroup $parent)
Renders group of controls.
string
string
renderPairMulti(array $controls)
Renders single visual row of multiple controls.
Html
Html
Html|string|null
Html|string
Html
getWrapper(string $name)
No description
mixed
getValue(string $name)
No description
Details
at line 127
string
render(Form $form, string|null $mode = null)
Provides complete form rendering.
at line 158
string
renderBegin()
Renders form begin.
at line 192
string
renderEnd()
Renders form end.
at line 212
string
renderErrors(Control|null $control = null, bool $own = true)
Renders validation errors (per form or per control).
at line 250
string
renderBody()
Renders form body.
at line 318
string
renderControls(ControlGroup $parent)
Renders group of controls.
at line 360
string
renderPair(Control $control)
Renders single visual row.
at line 381
string
renderPairMulti(array $controls)
Renders single visual row of multiple controls.
at line 427
Html
renderLabel(Control $control)
Renders 'label' part of visual row of controls.
at line 447
Html
renderControl(Control $control)
Renders 'control' part of visual row of controls.
at line 503
protected Html|string|null
renderLabelElement(Control $control)
No description
at line 509
protected Html|string
renderControlElement(Control $control)
No description
at line 515
Html
getWrapper(string $name)
No description
at line 522
protected mixed
getValue(string $name)
No description