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.
|
void |
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 131 |
|
protected int | $counter |
|
line 134 |
|
protected Form | $form |
|
line 128 |
|
array | $wrappers | array(
'form' => array(
'container' => NULL,
'errors' => TRUE,... |
line 73 /--- form.container of HTML tags |
Method Details | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 185 getClientScriptpublic mixed getClientScript () Returns JavaScript handler.
|
|||||||||||||||
line 508 getValueprotected string getValue (string $name)
|
|||||||||||||||
line 496 getWrapperprotected Html getWrapper (string $name)
|
|||||||||||||||
line 199 initprotected void init () Initializes form.
|
|||||||||||||||
line 144 renderpublic string render (Form $form, [string $mode = Provides complete form rendering. Implementation of:
|
|||||||||||||||
line 226 renderBeginpublic string renderBegin () Renders form begin.
|
|||||||||||||||
line 298 renderBodypublic string renderBody () Renders form body.
|
|||||||||||||||
line 462 renderControlpublic string renderControl (IFormControl $control) Renders 'control' part of visual row of controls.
|
|||||||||||||||
line 358 renderControlspublic string renderControls (FormContainer|FormGroup $parent) Renders group of controls.
|
|||||||||||||||
line 243 renderEndpublic string renderEnd () Renders form end.
|
|||||||||||||||
line 272 renderErrorspublic string renderErrors ([IFormControl $control = Renders validation errors (per form or per control).
|
|||||||||||||||
line 443 renderLabelpublic string renderLabel (IFormControl $control) Renders 'label' part of visual row of controls.
|
|||||||||||||||
line 402 renderPairpublic string renderPair (IFormControl $control) Renders single visual row.
|
|||||||||||||||
line 421 renderPairMultipublic string renderPairMulti ($controls) Renders single visual row of multiple controls.
|
|||||||||||||||
line 174 setClientScriptpublic void setClientScript ([object $clientScript = Sets JavaScript handler.
|