Jelix 1.7.18

jFormsDataContainer
in package

this object is a container for form data.

Tags
subpackage

forms

Table of Contents

$data  : array<string|int, mixed>
contains data provided by the user in each controls.
$errors  : array<string|int, mixed>
list of errors detected in data.
$formId  : string
the instance id of the form.
$formSelector  : jSelectorForm
the selector of the xml file of the form.
$originalData  : array<string|int, mixed>
contains data provided by the user in each controls.
$privateData  : array<string|int, mixed>
internal use. Used by controls object to store some private data. (captcha for example).
$refcount  : mixed
reference counter for the 'anonymous' form id (jForms::DEFAULT_ID).
$token  : mixed
token for security against CSRF.
$updatetime  : int
the last date when the form has been used.
$deactivated  : mixed
$readOnly  : mixed
__construct()  : mixed
clear()  : mixed
deactivate()  : mixed
isActivated()  : bool
check if a control is activated.
isReadOnly()  : bool
check if a control is activated.
setReadOnly()  : mixed
unsetData()  : mixed

Properties

$privateData

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

public array<string|int, mixed> $privateData = array()

Methods

deactivate()

public deactivate(mixed $name[, mixed $deactivation = true ]) : mixed
Parameters
$name : mixed
$deactivation : mixed = true
Return values
mixed

isActivated()

check if a control is activated.

public isActivated(string $name) : bool
Parameters
$name : string

the control name

Return values
bool

true if it is activated

isReadOnly()

check if a control is activated.

public isReadOnly(string $name) : bool
Parameters
$name : string

the control name

Return values
bool

true if it is activated

setReadOnly()

public setReadOnly(mixed $name[, mixed $readonly = true ]) : mixed
Parameters
$name : mixed
$readonly : mixed = true
Return values
mixed

Search results