TemplateController
in package
Tags
Table of Contents
- $builder : mixed
- $currentCtrl : jFormsControl|null
- $currentCtrlRef : string|null
- $currentSubmitCtrl : jFormsControl|null
- $currentSubmitRef : string|null
- $displayedControls : mixed
- $displayedSubmits : mixed
- $form : mixed
- $formViewMode : mixed
- __construct() : mixed
- controlsLoop() : Generator
- doesControlExist() : mixed
- endForm() : mixed
- getControl() : jFormsControl|null
- getControlValue() : mixed
- getCurrentControl() : jFormsControl|null
- getForm() : jFormsBase
- Give the form
- isControlActivated() : mixed
- isControlValueEqualsTo() : mixed
- isCurrentControl() : mixed
- isViewMode() : bool
- outputAllControls() : mixed
- outputAllControlsValues() : mixed
- outputControl() : mixed
- outputControlLabel() : mixed
- outputControlValue() : mixed
- outputReset() : mixed
- outputSubmit() : mixed
- retrieveControl() : false|jFormsControl|null
- startForm() : mixed
- submitsLoop() : Generator
Properties
$builder
protected
mixed
$builder
Tags
$currentCtrl
protected
jFormsControl|null
$currentCtrl
= null
Tags
$currentCtrlRef
protected
string|null
$currentCtrlRef
= null
Tags
$currentSubmitCtrl
protected
jFormsControl|null
$currentSubmitCtrl
= null
Tags
$currentSubmitRef
protected
string|null
$currentSubmitRef
= null
Tags
$displayedControls
protected
mixed
$displayedControls
= array()
Tags
$displayedSubmits
protected
mixed
$displayedSubmits
= array()
Tags
$form
protected
mixed
$form
Tags
$formViewMode
protected
mixed
$formViewMode
= false
Tags
Methods
__construct()
public
__construct(jFormsBase $form, mixed $builderName[, mixed $builderOptions = array() ][, mixed $submitActionSelector = '' ][, mixed $submitActionParameters = [] ]) : mixed
Parameters
- $form : jFormsBase
- $builderName : mixed
- $builderOptions : mixed = array()
- $submitActionSelector : mixed = ''
- $submitActionParameters : mixed = []
Tags
Return values
mixed —controlsLoop()
public
controlsLoop([bool $insideRealForm = true ][, array<string|int, mixed>|null $controlsToDisplay = null ][, array<string|int, mixed>|null $controlsToNotDisplay = null ]) : Generator
Parameters
- $insideRealForm : bool = true
- $controlsToDisplay : array<string|int, mixed>|null = null
- $controlsToNotDisplay : array<string|int, mixed>|null = null
Tags
Return values
Generator —doesControlExist()
public
doesControlExist(mixed $ref) : mixed
Parameters
- $ref : mixed
Tags
Return values
mixed —endForm()
public
endForm() : mixed
Tags
Return values
mixed —getControl()
public
getControl( $ref) : jFormsControl|null
Parameters
Tags
Return values
jFormsControl|null —getControlValue()
public
getControlValue(mixed $ref, mixed $tplName, mixed $insteadOfDisplay) : mixed
Parameters
- $ref : mixed
- $tplName : mixed
- $insteadOfDisplay : mixed
Tags
Return values
mixed —getCurrentControl()
public
getCurrentControl() : jFormsControl|null
Tags
Return values
jFormsControl|null —getForm()
Give the form
public
getForm() : jFormsBase
Tags
Return values
jFormsBase —isControlActivated()
public
isControlActivated([mixed $ref = '' ]) : mixed
Parameters
- $ref : mixed = ''
Tags
Return values
mixed —isControlValueEqualsTo()
public
isControlValueEqualsTo(mixed $value[, mixed $ref = '' ]) : mixed
Parameters
- $value : mixed
- $ref : mixed = ''
Tags
Return values
mixed —isCurrentControl()
public
isCurrentControl(mixed ...$refs) : mixed
Parameters
- $refs : mixed
Tags
Return values
mixed —isViewMode()
public
isViewMode() : bool
Tags
Return values
bool —outputAllControls()
public
outputAllControls() : mixed
Tags
Return values
mixed —outputAllControlsValues()
public
outputAllControlsValues() : mixed
Tags
Return values
mixed —outputControl()
public
outputControl([mixed $ref = '' ][, mixed $attributes = [] ][, mixed $tplName = '' ]) : mixed
Parameters
- $ref : mixed = ''
- $attributes : mixed = []
- $tplName : mixed = ''
Tags
Return values
mixed —outputControlLabel()
public
outputControlLabel([mixed $ref = '' ][, mixed $format = '' ][, mixed $tplName = '' ]) : mixed
Parameters
- $ref : mixed = ''
- $format : mixed = ''
- $tplName : mixed = ''
Tags
Return values
mixed —outputControlValue()
public
outputControlValue([mixed $ref = '' ][, mixed $attributes = '' ][, mixed $tplName = '' ][, mixed $rawValue = false ][, mixed $contentWhenEmpty = '' ]) : mixed
Parameters
- $ref : mixed = ''
- $attributes : mixed = ''
- $tplName : mixed = ''
- $rawValue : mixed = false
- $contentWhenEmpty : mixed = ''
Tags
Return values
mixed —outputReset()
public
outputReset() : mixed
Tags
Return values
mixed —outputSubmit()
public
outputSubmit([mixed $ref = '' ][, mixed $attributes = [] ][, mixed $tplName = '' ]) : mixed
Parameters
- $ref : mixed = ''
- $attributes : mixed = []
- $tplName : mixed = ''
Tags
Return values
mixed —retrieveControl()
public
retrieveControl( &$ref, $tplName) : false|jFormsControl|null
Parameters
Tags
Return values
false|jFormsControl|null —startForm()
public
startForm() : mixed
Tags
Return values
mixed —submitsLoop()
public
submitsLoop([array<string|int, mixed>|null $submitToDisplay = null ]) : Generator
Parameters
- $submitToDisplay : array<string|int, mixed>|null = null