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 134 |
|
protected int | $counter |
|
line 137 |
|
protected Form | $form |
|
line 131 |
|
array | $wrappers | array(
'form' => array(
'container' => NULL,
'errors' => TRUE,... |
line 74 /--- form.container of HTML tags |
Method Details | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 189 getClientScriptpublic mixed getClientScript () Returns JavaScript handler.
|
|||||||||||||||
line 542 getValueprotected string getValue (string $name)
|
|||||||||||||||
line 530 getWrapperprotected Html getWrapper (string $name)
|
|||||||||||||||
line 203 initprotected void init () Initializes form.
|
|||||||||||||||
line 147 renderpublic string render (Form $form, [string $mode = Provides complete form rendering. Implementation of:
|
|||||||||||||||
line 230 renderBeginpublic string renderBegin () Renders form begin.
|
|||||||||||||||
line 322 renderBodypublic string renderBody () Renders form body.
|
|||||||||||||||
line 492 renderControlpublic string renderControl (IFormControl $control) Renders 'control' part of visual row of controls.
|
|||||||||||||||
line 382 renderControlspublic string renderControls (FormContainer|FormGroup $parent) Renders group of controls.
|
|||||||||||||||
line 267 renderEndpublic string renderEnd () Renders form end.
|
|||||||||||||||
line 296 renderErrorspublic string renderErrors ([IFormControl $control = Renders validation errors (per form or per control).
|
|||||||||||||||
line 467 renderLabelpublic string renderLabel (IFormControl $control) Renders 'label' part of visual row of controls.
|
|||||||||||||||
line 426 renderPairpublic string renderPair (IFormControl $control) Renders single visual row.
|
|||||||||||||||
line 445 renderPairMultipublic string renderPairMulti ($controls) Renders single visual row of multiple controls.
|
|||||||||||||||
line 177 setClientScriptpublic ConventionalRenderer setClientScript ([object $clientScript = Sets JavaScript handler.
|