Class jFormsDataContainer

Description

this object is a container for form data

Located in /forms/jFormsDataContainer.class.php (line 17)


	
			
Variable Summary
Method Summary
jFormsDataContainer __construct (jSelectorForm $formSelector, string $formId)
void clear ()
void deactivate ( $name, [ $deactivation = true])
boolean isActivated ($name $name)
boolean isReadOnly ($name $name)
void setReadOnly ( $name, [ $readonly = true])
void unsetData ( $name)
Variables
array $data = array() (line 22)

contains data provided by the user in each controls

  • access: public
mixed $deactivated = array() (line 74)
  • access: protected
array $errors = array() (line 53)

list of errors detected in data

  • access: public
string $formId (line 42)

the instance id of the form

  • access: public
jSelectorForm $formSelector (line 47)

the selector of the xml file of the form

  • access: public
array $originalData = array() (line 30)

contains data provided by the user in each controls

array $privateData = array() (line 36)

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

  • access: public
mixed $readOnly = array() (line 69)
  • access: protected
mixed $token = '' (line 64)

token for security against CSRF

  • access: public
integer $updatetime = 0 (line 59)

the last date when the form has been used

  • access: public
Methods
Constructor __construct (line 80)
jFormsDataContainer __construct (jSelectorForm $formSelector, string $formId)
clear (line 89)
void clear ()
deactivate (line 96)
  • access: public
void deactivate ( $name, [ $deactivation = true])
  • $name
  • $deactivation
isActivated (line 121)

check if a control is activated

  • return: true if it is activated
  • access: public
boolean isActivated ($name $name)
  • $name $name: the control name
isReadOnly (line 130)

check if a control is activated

  • return: true if it is activated
  • access: public
boolean isReadOnly ($name $name)
  • $name $name: the control name
setReadOnly (line 106)
  • access: public
void setReadOnly ( $name, [ $readonly = true])
  • $name
  • $readonly
unsetData (line 85)
void unsetData ( $name)
  • $name

Documentation generated on Thu, 22 Mar 2012 22:16:05 +0100 by phpDocumentor 1.4.3