DefaultFormRenderer
class DefaultFormRenderer implements IFormRenderer
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(IControl $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
Html
getWrapper(string $name)
No description
mixed
getValue(string $name)
No description
Details
at line 132
string
render(Form $form, string $mode = null)
Provides complete form rendering.
at line 161
string
renderBegin()
Renders form begin.
at line 194
string
renderEnd()
Renders form end.
at line 216
string
renderErrors(IControl $control = null, bool $own = true)
Renders validation errors (per form or per control).
at line 252
string
renderBody()
Renders form body.
at line 319
string
renderControls(Container|ControlGroup $parent)
Renders group of controls.
at line 364
string
renderPair(IControl $control)
Renders single visual row.
at line 384
string
renderPairMulti(array $controls)
Renders single visual row of multiple controls.
at line 425
Html
renderLabel(IControl $control)
Renders 'label' part of visual row of controls.
at line 444
Html
renderControl(IControl $control)
Renders 'control' part of visual row of controls.
at line 496
Html
getWrapper(string $name)
No description
at line 504
protected mixed
getValue(string $name)
No description
Traits
SmartObject