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, $own = true)
Renders validation errors (per form or per control).
string
renderBody()
Renders form body.
string
renderControls($parent)
Renders group of controls.
string
string
renderPairMulti(array $controls)
Renders single visual row of multiple controls.
Html
Html
Html
getWrapper($name)
No description
mixed
getValue($name)
No description
Details
at line 130
string
render(Form $form, $mode = null)
Provides complete form rendering.
at line 160
string
renderBegin()
Renders form begin.
at line 193
string
renderEnd()
Renders form end.
at line 216
string
renderErrors(IControl $control = null, $own = true)
Renders validation errors (per form or per control).
at line 244
string
renderBody()
Renders form body.
at line 310
string
renderControls($parent)
Renders group of controls.
at line 352
string
renderPair(IControl $control)
Renders single visual row.
at line 373
string
renderPairMulti(array $controls)
Renders single visual row of multiple controls.
at line 412
Html
renderLabel(IControl $control)
Renders 'label' part of visual row of controls.
at line 432
Html
renderControl(IControl $control)
Renders 'control' part of visual row of controls.
at line 470
protected Html
getWrapper($name)
No description
at line 481
protected mixed
getValue($name)
No description
Traits
SmartObject