class DefaultFormRenderer implements IFormRenderer

Converts a Form into the HTML output.

Properties

array $wrappers

/--- form.container

protected Form $form
protected int $counter

Methods

string
render(Form $form, $mode = null)

Provides complete form rendering.

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
renderPair(IControl $control)

Renders single visual row.

string
renderPairMulti(array $controls)

Renders single visual row of multiple controls.

Html
renderLabel(IControl $control)

Renders 'label' part of visual row of controls.

Html
renderControl(IControl $control)

Renders 'control' part of visual row of controls.

Html
getWrapper($name)

No description

mixed
getValue($name)

No description

Details

at line 130
string render(Form $form, $mode = null)

Provides complete form rendering.

Parameters

Form $form
$mode

Return Value

string

at line 160
string renderBegin()

Renders form begin.

Return Value

string

at line 193
string renderEnd()

Renders form end.

Return Value

string

at line 216
string renderErrors(IControl $control = null, $own = true)

Renders validation errors (per form or per control).

Parameters

IControl $control
$own

Return Value

string

at line 244
string renderBody()

Renders form body.

Return Value

string

at line 310
string renderControls($parent)

Renders group of controls.

Parameters

$parent

Return Value

string

at line 352
string renderPair(IControl $control)

Renders single visual row.

Parameters

IControl $control

Return Value

string

at line 373
string renderPairMulti(array $controls)

Renders single visual row of multiple controls.

Parameters

array $controls

Return Value

string

at line 412
Html renderLabel(IControl $control)

Renders 'label' part of visual row of controls.

Parameters

IControl $control

Return Value

Html

at line 432
Html renderControl(IControl $control)

Renders 'control' part of visual row of controls.

Parameters

IControl $control

Return Value

Html

at line 470
protected Html getWrapper($name)

No description

Parameters

$name

Return Value

Html

at line 481
protected mixed getValue($name)

No description

Parameters

$name

Return Value

mixed

Traits

SmartObject