PHP Class Nette\Forms\Rendering\DefaultFormRenderer

Inheritance: implements Nette\Forms\IFormRenderer, use trait Nette\SmartObject
ファイルを表示 Open project: nette/forms Class Usage Examples

Public Properties

Property Type Description
$wrappers --- error.container .... error.item [.class] \--- --- hidden.container .... HIDDEN CONTROLS \--- --- group.container .... group.label .... group.description --- controls.container --- pair.container [.required .optional .odd] --- label.container .... LABEL .... label.suffix .... label.requiredsuffix \--- --- control.container [.odd] .... CONTROL [.required .text .password .file .submit .button] .... control.requiredsuffix .... control.description .... control.errorcontainer + control.erroritem \--- \--- \--- \--- \--

Protected Properties

Property Type Description
$counter integer
$form Nette\Forms\Form

Public Methods

Method Description
render ( Form $form, $mode = NULL ) : string Provides complete form rendering.
renderBegin ( ) : string Renders form begin.
renderBody ( ) : string Renders form body.
renderControl ( Nette\Forms\IControl $control ) : string Renders 'control' part of visual row of controls.
renderControls ( $parent ) : string Renders group of controls.
renderEnd ( ) : string Renders form end.
renderErrors ( Nette\Forms\IControl $control = NULL, $own = TRUE ) : string Renders validation errors (per form or per control).
renderLabel ( Nette\Forms\IControl $control ) : string Renders 'label' part of visual row of controls.
renderPair ( Nette\Forms\IControl $control ) : string Renders single visual row.
renderPairMulti ( array $controls ) : string Renders single visual row of multiple controls.

Protected Methods

Method Description
getValue ( $name ) : string
getWrapper ( $name ) : Nette\Utils\Html

Method Details

getValue() protected method

protected getValue ( $name ) : string
return string

getWrapper() protected method

protected getWrapper ( $name ) : Nette\Utils\Html
return Nette\Utils\Html

render() public method

Provides complete form rendering.
public render ( Form $form, $mode = NULL ) : string
$form Nette\Forms\Form
return string

renderBegin() public method

Renders form begin.
public renderBegin ( ) : string
return string

renderBody() public method

Renders form body.
public renderBody ( ) : string
return string

renderControl() public method

Renders 'control' part of visual row of controls.
public renderControl ( Nette\Forms\IControl $control ) : string
$control Nette\Forms\IControl
return string

renderControls() public method

Renders group of controls.
public renderControls ( $parent ) : string
return string

renderEnd() public method

Renders form end.
public renderEnd ( ) : string
return string

renderErrors() public method

Renders validation errors (per form or per control).
public renderErrors ( Nette\Forms\IControl $control = NULL, $own = TRUE ) : string
$control Nette\Forms\IControl
return string

renderLabel() public method

Renders 'label' part of visual row of controls.
public renderLabel ( Nette\Forms\IControl $control ) : string
$control Nette\Forms\IControl
return string

renderPair() public method

Renders single visual row.
public renderPair ( Nette\Forms\IControl $control ) : string
$control Nette\Forms\IControl
return string

renderPairMulti() public method

Renders single visual row of multiple controls.
public renderPairMulti ( array $controls ) : string
$controls array
return string

Property Details

$counter protected_oe property

protected int $counter
return integer

$form protected_oe property

protected Form,Nette\Forms $form
return Nette\Forms\Form

$wrappers public_oe property

--- error.container .... error.item [.class] \--- --- hidden.container .... HIDDEN CONTROLS \--- --- group.container .... group.label .... group.description --- controls.container --- pair.container [.required .optional .odd] --- label.container .... LABEL .... label.suffix .... label.requiredsuffix \--- --- control.container [.odd] .... CONTROL [.required .text .password .file .submit .button] .... control.requiredsuffix .... control.description .... control.errorcontainer + control.erroritem \--- \--- \--- \--- \--
public $wrappers