namespace Nette\Forms
Class DefaultFormRenderer
Converts a Form into the HTML output.
- Nette\Object
-
Nette\Forms\DefaultFormRenderer implements IFormRenderer
public
string
|
#
render(
Form
$form,
string
$mode = NULL
)
Provides complete form rendering. Provides complete form rendering. Parameters$form Form$mode string 'begin', 'errors', 'body', 'end' or empty to render allImplementation of |
public
|
#
setClientScript(
)
|
protected
void
|
#
init(
)
Initializes form. Initializes form. |
public
string
|
#
renderBegin(
)
Renders form begin. Renders form begin. |
public
string
|
#
renderEnd(
)
Renders form end. Renders form end. |
public
string
|
#
renderErrors(
IFormControl
$control = NULL
)
Renders validation errors (per form or per control). Renders validation errors (per form or per control). Parameters$control IFormControl |
public
string
|
#
renderBody(
)
Renders form body. Renders form body. |
public
string
|
#
renderControls(
FormContainer|FormGroup
$parent
)
Renders group of controls. Renders group of controls. Parameters$parent FormContainer|FormGroup |
public
string
|
#
renderPair(
IFormControl
$control
)
Renders single visual row. Renders single visual row. Parameters$control IFormControl |
public
string
|
#
renderPairMulti(
array
$controls
)
Renders single visual row of multiple controls. Renders single visual row of multiple controls. Parameters$controls array of IFormControl |
public
string
|
#
renderLabel(
IFormControl
$control
)
Renders ‚label‘ part of visual row of controls. Renders ‚label‘ part of visual row of controls. Parameters$control IFormControl |
public
string
|
#
renderControl(
IFormControl
$control
)
Renders ‚control‘ part of visual row of controls. Renders ‚control‘ part of visual row of controls. Parameters$control IFormControl |
protected
Nette\Web\Html
|
#
getWrapper(
string
$name
)
Parameters$name string |
protected
string
|
#
getValue(
string
$name
)
Parameters$name string |
Methods Inherited From Nette\Object
getReflection(), __call(), __callStatic(), extensionMethod(), __get(), __set(), __isset(), __unset()
array
|
$wrappers | array ( 'form' => array ( 'container' => NULL, 'errors' => true, ), 'error' => array ( 'container' => 'ul class=error', 'item' => 'li', ), 'group' => array ( 'container' => 'fieldset', 'label' => 'legend', 'description' => 'p', ), 'controls' => array ( 'container' => 'table', ), 'pair' => array ( 'container' => 'tr', '.required' => 'required', '.optional' => NULL, '.odd' => NULL, ), 'control' => array ( 'container' => 'td', '.odd' => NULL, 'errors' => false, 'description' => 'small', 'requiredsuffix' => '', '.required' => 'required', '.text' => 'text', '.password' => 'text', '.file' => 'text', '.submit' => 'button', '.image' => 'imagebutton', '.button' => 'button', ), 'label' => array ( 'container' => 'th', 'suffix' => NULL, 'requiredsuffix' => '', ), 'hidden' => array ( 'container' => 'div', ), ) |
/--- form.container # |
protected
Form
|
$form | NULL |
# |
protected
int
|
$counter | NULL |
# |