◆ __construct()
BxBaseFormView::__construct |
( |
|
$aInfo, |
|
|
|
$oTemplate |
|
) |
| |
Constructor
- Parameters
-
$aInfo['params'] = array( 'remove_form' => true|false, );
- Returns
- BxBaseFormView
◆ genForm()
BxBaseFormView::genForm |
( |
| ) |
|
Generate the whole form
- Returns
- string
◆ genInput()
BxBaseFormView::genInput |
( |
& |
$aInput | ) |
|
Generate HTML Input Element
- Parameters
-
- Returns
- string Output HTML Code
◆ genInputButton()
BxBaseFormView::genInputButton |
( |
& |
$aInput | ) |
|
Generate Button Input Element
- Parameters
-
- Returns
- string
◆ genInputCheckboxSet()
BxBaseFormView::genInputCheckboxSet |
( |
& |
$aInput | ) |
|
Generate Checkbox Set Element
- Parameters
-
- Returns
- string
◆ genInputFile()
BxBaseFormView::genInputFile |
( |
& |
$aInput | ) |
|
Generate Browse File Element
- Parameters
-
- Returns
- string
◆ genInputFiles()
BxBaseFormView::genInputFiles |
( |
& |
$aInput, |
|
|
|
$sInfo = '' , |
|
|
|
$sError = '' |
|
) |
| |
Generate Select Box Element
- Parameters
-
- Returns
- string
◆ genInputRadioSet()
BxBaseFormView::genInputRadioSet |
( |
& |
$aInput | ) |
|
Generate Radiobuttons Set Element
- Parameters
-
- Returns
- string
◆ genInputSelect()
BxBaseFormView::genInputSelect |
( |
& |
$aInput | ) |
|
Generate Select Element
- Parameters
-
- Returns
- string
◆ genInputSelectBox()
BxBaseFormView::genInputSelectBox |
( |
& |
$aInput, |
|
|
|
$sInfo = '' , |
|
|
|
$sError = '' |
|
) |
| |
Generate Select Box Element
- Parameters
-
- Returns
- string
◆ genInputSelectMultiple()
BxBaseFormView::genInputSelectMultiple |
( |
& |
$aInput | ) |
|
Generate Multiple Select Element
- Parameters
-
- Returns
- string
◆ genInputSelectRgb()
BxBaseFormView::genInputSelectRgb |
( |
& |
$aInput | ) |
|
Generate Select RGB Element
- Parameters
-
- Returns
- string
◆ genInputStandard()
BxBaseFormView::genInputStandard |
( |
& |
$aInput | ) |
|
Generate standard Input Element
- Parameters
-
- Returns
- string
◆ genInputSwitcher()
BxBaseFormView::genInputSwitcher |
( |
& |
$aInput | ) |
|
Generate Switcher Input Element (based on checkbox)
- Parameters
-
- Returns
- string
◆ genInputTextarea()
BxBaseFormView::genInputTextarea |
( |
& |
$aInput | ) |
|
Generate Textarea Element
- Parameters
-
- Returns
- string
◆ genLabel()
BxBaseFormView::genLabel |
( |
& |
$aInput | ) |
|
Generate Label Element
- Parameters
-
- Returns
- string HTML code
◆ genRow()
BxBaseFormView::genRow |
( |
& |
$aInput | ) |
|
Generate single Table Row
- Parameters
-
- Returns
- string
◆ genRowBlockHeader()
BxBaseFormView::genRowBlockHeader |
( |
& |
$aInput | ) |
|
Generate Block Headers row
- Parameters
-
- Returns
- string
◆ genRowCustom()
BxBaseFormView::genRowCustom |
( |
& |
$aInput, |
|
|
|
$sCustomMethod |
|
) |
| |
Generate custom row
- Parameters
-
array | $aInput | |
string | $sCustomMethod | custom method to generate code for input |
- Returns
- string
◆ genRows()
BxBaseFormView::genRows |
( |
| ) |
|
Generate Table HTML code
- Returns
- string
◆ genRowStandard()
BxBaseFormView::genRowStandard |
( |
& |
$aInput, |
|
|
|
$isOneLine = false |
|
) |
| |
Generate standard row
- Parameters
-
- Returns
- string
◆ genViewRow()
BxBaseFormView::genViewRow |
( |
& |
$aInput | ) |
|
Generate single Table Row for view mode
- Parameters
-
- Returns
- string
◆ genViewRowValue()
BxBaseFormView::genViewRowValue |
( |
& |
$aInput | ) |
|
Generate value for view mode row
- Parameters
-
- Returns
- string
◆ genViewRowWrapped()
BxBaseFormView::genViewRowWrapped |
( |
& |
$aInput | ) |
|
Generate complete wrapped row for view mode form
- Parameters
-
- Returns
- string
◆ getCode()
BxBaseFormView::getCode |
( |
|
$bDynamicMode = false | ) |
|
Return Form code
- Parameters
-
$bDynamicMode | - set it to true if form is added via JS/AJAX call, for example form in AJAX popup. |
- Returns
- string
◆ getInputId()
BxBaseFormView::getInputId |
( |
& |
$aInput | ) |
|
Generate new Input Element id
- Parameters
-
- Returns
- string
◆ $_aCss
BxBaseFormView::$_aCss = array() |
|
protected |
◆ $_aJs
BxBaseFormView::$_aJs = array() |
|
protected |
◆ $_bAbsoluteActionUrl
BxBaseFormView::$_bAbsoluteActionUrl = false |
|
protected |
Use absolute Action URL which is needed in Ajax Mode.
◆ $_bAjaxMode
BxBaseFormView::$_bAjaxMode = false |
|
protected |
Form is submitted dynamically (using Ajax Submit).
◆ $_bDynamicMode
BxBaseFormView::$_bDynamicMode = false |
|
protected |
Form is added dynamically.
◆ $_bShowEmptySections
BxBaseFormView::$_bShowEmptySections = false |
|
protected |
Show or not sections which have no fileds
◆ $_bViewMode
BxBaseFormView::$_bViewMode = false |
|
protected |
Form is displayed in view mode.
◆ $_isSectionOpened
BxBaseFormView::$_isSectionOpened = false |
|
protected |
◆ $_sCodeAdd
BxBaseFormView::$_sCodeAdd = '' |
|
protected |
Code which will be added to the beginning of the form. For example, hidden inputs. For internal use only
◆ $_sDivider
BxBaseFormView::$_sDivider = '<span class="bx-def-margin-left"></span>' |
|
protected |
Default divider for several inputs
◆ $_sDividerAlt
BxBaseFormView::$_sDividerAlt = '<br />' |
|
protected |
Alternative divider for several inputs
◆ $_sSectionClose
BxBaseFormView::$_sSectionClose = 'getCloseSection' |
|
protected |
Function name for generation close form section HTML.
◆ $_sSectionOpen
BxBaseFormView::$_sSectionOpen = 'getOpenSection' |
|
protected |
Function name for generation open form section HTML.
◆ $bEnableErrorIcon
BxBaseFormView::$bEnableErrorIcon = true |
|
protected |
Enable or disable error message displaying
◆ $sCode
The documentation for this class was generated from the following file:
- template/scripts/BxBaseFormView.php