jFormsDataContainer

this object is a container for form data

package

jelix

subpackage

forms

Methods

__construct

__construct(\jSelectorForm $formSelector, string $formId) 

Arguments

$formSelector

\jSelectorForm

$formId

string

clear

clear() 

deactivate

deactivate( $name,  $deactivation = true) 

Arguments

$name

$deactivation

check if a control is activated

isActivated(string $name) : boolean

Arguments

$name

string

the control name

Response

boolean

true if it is activated

check if a control is activated

isReadOnly(string $name) : boolean

Arguments

$name

string

the control name

Response

boolean

true if it is activated

setReadOnly

setReadOnly( $name,  $readonly = true) 

Arguments

$name

$readonly

unsetData

unsetData( $name) 

Arguments

$name

Properties

contains data provided by the user in each controls

data : array
var

Type(s)

array

contains data provided by the user in each controls

originalData : array
var
see

Type(s)

array

internal use. Used by controls object to store some private data. (captcha for example)

privateData : array
var

Type(s)

array

the instance id of the form

formId : string
var

Type(s)

string

the selector of the xml file of the form

formSelector : \jSelectorForm
var

Type(s)

\jSelectorForm

list of errors detected in data

errors : array
var

Type(s)

array

the last date when the form has been used

updatetime : integer
var

Type(s)

integer

token for security against CSRF

token : 

Type(s)

reference counter for the 'anonymous' form id (jForms::DEFAULT_ID)

refcount : 

Type(s)

readOnly

readOnly : 

Type(s)

deactivated

deactivated : 

Type(s)