Main HTML form builder
a builder form class is a class which help to generate a form for the output (html form for example)
| package |
jelix |
|---|
_outputAttr( &$attributes)
endOfTag()
escJsStr( $str)
generateFormName( $sel)
getForm()
getjFormsJsVarName()
getName()
getOption(string $name) : mixed
stringname of an option
mixedthe value of the option
getWidget(\jFormsControl $ctrl, \jelix\forms\HtmlWidget\ParentWidgetInterface|null $parentWidget = null) : \jelix\forms\HtmlWidget\WidgetBase
| Throws |
|
|---|
\jFormsControl
\jelix\forms\HtmlWidget\ParentWidgetInterface|null
\jelix\forms\HtmlWidget\WidgetBase
outputAllControls()
| since | 1.1 |
|---|---|
outputControl(\jFormsControl $ctrl, array $attributes = array())
arrayattribute to add on the generated code (html attributes for example)
outputControlHelp(\jFormsControl $ctrl)
outputControlLabel(\jFormsControl $ctrl, $format = '', $editMode = true)
outputControlValue(\jFormsControl $ctrl, array $attributes = array())
arrayattribute to add on the generated code (html attributes for example)
outputErrors()
outputHeader()
outputMetaContent(\jTpl $tpl)
setAction(string $action, array $actionParams)
stringaction selector where form will be submit
arrayparameters for the action
setOptions(array $options)
arrayassociative array
formType :
formConfig :
jFormsJsVarName :
defaultPluginsConf : array
| var |
define default plugins for each formwidget |
|---|
array
pluginsConf : array
| var |
define plugins for each formwidget for the current builder |
|---|
array
htmlFormAttributes : array
| var |
list of default html attributes to set on the form element |
|---|
array
htmlWidgetsAttributes : array
| var |
list of attributes for each type of widgets. Keys are widgets type. |
|---|
array
rootWidget : \jelix\forms\HtmlWidget\RootWidget
_action : string
| var |
|---|
string
_actionParams : array
| var |
|---|
array
_name :
_endt :