PHP Class jelix\forms\Builder\HtmlBuilder

Inheritance: extends jelix\forms\Builder\BuilderBase
显示文件 Open project: jelix/jelix Class Usage Examples

Protected Properties

Property Type Description
$formConfig
$formType
$jFormsJsVarName
$pluginsConf containing the formwidget for the current builder
$rootWidget jelix\forms\HtmlWidget\RootWidget
$widgets

Public Methods

Method Description
__construct ( $form )
escJsStr ( $str )
getWidget ( $ctrl, jelix\forms\HtmlWidget\ParentWidgetInterface $parentWidget = null )
getjFormsJsVarName ( )
outputAllControls ( )
outputControl ( $ctrl, $attributes = [] )
outputControlLabel ( $ctrl, $format = '', $editMode = true )
outputControlValue ( $ctrl, $attributes = [] )
outputFooter ( )
outputHeader ( ) output the header content of the form
outputMetaContent ( $t )
setOptions ( array $options ) set options

Protected Methods

Method Description
_outputAttr ( &$attributes )
outputErrors ( )

Method Details

__construct() public method

public __construct ( $form )

_outputAttr() protected method

protected _outputAttr ( &$attributes )

escJsStr() public method

public escJsStr ( $str )

getWidget() public method

public getWidget ( $ctrl, jelix\forms\HtmlWidget\ParentWidgetInterface $parentWidget = null )
$parentWidget jelix\forms\HtmlWidget\ParentWidgetInterface

getjFormsJsVarName() public method

public getjFormsJsVarName ( )

outputAllControls() public method

public outputAllControls ( )

outputControl() public method

public outputControl ( $ctrl, $attributes = [] )

outputControlLabel() public method

public outputControlLabel ( $ctrl, $format = '', $editMode = true )

outputControlValue() public method

public outputControlValue ( $ctrl, $attributes = [] )

outputErrors() protected method

protected outputErrors ( )

outputFooter() public method

public outputFooter ( )

outputHeader() public method

output the header content of the form
public outputHeader ( )

outputMetaContent() public method

public outputMetaContent ( $t )

setOptions() public method

set options
public setOptions ( array $options )
$options array some parameters
  • "errDecorator"=>"name of your javascript object for error listener"
  • "method" => "post" or "get". default is "post"

Property Details

$formConfig protected_oe property

protected $formConfig

$formType protected_oe property

protected $formType

$jFormsJsVarName protected_oe property

protected $jFormsJsVarName

$pluginsConf protected_oe property

containing the formwidget for the current builder
protected $pluginsConf

$rootWidget protected_oe property

protected RootWidget,jelix\forms\HtmlWidget $rootWidget
return jelix\forms\HtmlWidget\RootWidget

$widgets protected_oe property

protected $widgets