Class ConventionalRenderer (namespace Nette\Forms)
Converts a Form into the HTML output.
Object | --ConventionalRenderer
Implements interfaces:
Public Method Summary | |
---|---|
mixed |
Returns JavaScript handler.
|
string |
Provides complete form rendering.
|
string |
renderBegin
()
Renders form begin.
|
string |
renderBody
()
Renders form body.
|
string |
renderControl
(IFormControl $control)
Renders 'control' part of visual row of controls.
|
string |
Renders group of controls.
|
string |
renderEnd
()
Renders form end.
|
string |
Renders validation errors (per form or per control).
|
string |
renderLabel
(IFormControl $control)
Renders 'label' part of visual row of controls.
|
string |
renderPair
(IFormControl $control)
Renders single visual row.
|
string |
renderPairMulti
($controls)
Renders single visual row of multiple controls.
|
ConventionalRenderer |
setClientScript
([object $clientScript =
NULL ])
Sets JavaScript handler.
|
Protected Method Summary | |
---|---|
protected string |
getValue
(string $name)
|
protected Html |
getWrapper
(string $name)
|
protected void |
init
()
Initializes form.
|
Methods Inherited From Object |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Variable Summary | ||||
---|---|---|---|---|
protected object | $clientScript | TRUE |
line 120 |
|
protected int | $counter |
|
line 123 |
|
protected Form | $form |
|
line 117 |
|
array | $wrappers | array(
'form' => array(
'container' => NULL,
'errors' => TRUE,... |
line 60 /--- form.container of HTML tags |
Method Details | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 175 getClientScriptpublic mixed getClientScript () Returns JavaScript handler.
|
|||||||||||||||
line 528 getValueprotected string getValue (string $name)
|
|||||||||||||||
line 516 getWrapperprotected Html getWrapper (string $name)
|
|||||||||||||||
line 189 initprotected void init () Initializes form.
|
|||||||||||||||
line 133 renderpublic string render (Form $form, [string $mode = Provides complete form rendering. Implementation of:
|
|||||||||||||||
line 216 renderBeginpublic string renderBegin () Renders form begin.
|
|||||||||||||||
line 308 renderBodypublic string renderBody () Renders form body.
|
|||||||||||||||
line 478 renderControlpublic string renderControl (IFormControl $control) Renders 'control' part of visual row of controls.
|
|||||||||||||||
line 368 renderControlspublic string renderControls (FormContainer|FormGroup $parent) Renders group of controls.
|
|||||||||||||||
line 253 renderEndpublic string renderEnd () Renders form end.
|
|||||||||||||||
line 282 renderErrorspublic string renderErrors ([IFormControl $control = Renders validation errors (per form or per control).
|
|||||||||||||||
line 453 renderLabelpublic string renderLabel (IFormControl $control) Renders 'label' part of visual row of controls.
|
|||||||||||||||
line 412 renderPairpublic string renderPair (IFormControl $control) Renders single visual row.
|
|||||||||||||||
line 431 renderPairMultipublic string renderPairMulti ($controls) Renders single visual row of multiple controls.
|
|||||||||||||||
line 163 setClientScriptpublic ConventionalRenderer setClientScript ([object $clientScript = Sets JavaScript handler.
|