Class: I2CE FormStorage Flat (Development): Difference between revisions

From IHRIS Wiki
(Created page with '{{otherversions|Class: I2CE_FormStorage_Flat}} This article describes the class ''I2CE_FormStorage_Flat'' . *Extends the class: [[Class: I2CE_FormStorage_DB (Development) | I2CE_…')
 
No edit summary
 
Line 2: Line 2:
This article describes the class ''I2CE_FormStorage_Flat'' .
This article describes the class ''I2CE_FormStorage_Flat'' .
*Extends the class: [[Class: I2CE_FormStorage_DB (Development) | I2CE_FormStorage_DB]].
*Extends the class: [[Class: I2CE_FormStorage_DB (Development) | I2CE_FormStorage_DB]].
*Location: Part of the module [[I2CE Module List (Development)#forms-storage-flat|forms-storage-flat]] in the package [https://launchpad.net/i2ce I2CE] 4.0-dev
*Location: Part of the module [[I2CE Module List (Development)#forms-storage-flat|forms-storage-flat]] in the package [https://launchpad.net/i2ce I2CE] 4.1-dev
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L33 modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 33
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L33 modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 33
*Author: Carl Leitner <litlfred@ibiblio.org>
*Author: Carl Leitner <litlfred@ibiblio.org>
*Since: v3.2.0
*Since: v3.2.0
Line 10: Line 10:
===$saveStmts===
===$saveStmts===
@protected array $saveStmts An array of prepared statements for saving indexed by the form name
@protected array $saveStmts An array of prepared statements for saving indexed by the form name
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L50 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 50
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L50 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 50
*Type: protected $saveStmts
*Type: protected $saveStmts


===$saveCols===
===$saveCols===
.  An array, indexed by form name, of arrays of pairs fieldnames=>column names
.  An array, indexed by form name, of arrays of pairs fieldnames=>column names
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L55 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 55
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L55 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 55
*Type: protected  $saveCols
*Type: protected  $saveCols


===$fieldSaves===
===$fieldSaves===
.  Array indexed by form name of array, indexed by field name, of prepared save statements for a field
.  Array indexed by form name of array, indexed by field name, of prepared save statements for a field
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L320 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 320
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L320 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 320
*Type: protected  $fieldSaves
*Type: protected  $fieldSaves


===$formObjs===
===$formObjs===
.  Keys are form names, values are instanceof I2CE_Form
.  Keys are form names, values are instanceof I2CE_Form
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L387 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 387
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L387 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 387
*Type: protected [http://www.php.net/manual/en/language.types.array.php array ] $formObjs
*Type: protected [http://www.php.net/manual/en/language.types.array.php array ] $formObjs


Line 31: Line 31:
===FF_save()===
===FF_save()===
Save the FormField to the database.
Save the FormField to the database.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L302 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 302
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L302 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 302
*Signature: public function FF_save($fieldObj,$do_check,$user)
*Signature: public function FF_save($fieldObj,$do_check,$user)
*Parameters:
*Parameters:
Line 40: Line 40:
===__construct()===
===__construct()===
The constructor for the storage mechanism
The constructor for the storage mechanism
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L412 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 412
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L412 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 412
*Signature: public function __construct($name,$global_options)
*Signature: public function __construct($name,$global_options)
*Parameters:
*Parameters:
Line 48: Line 48:
===ensureFormId()===
===ensureFormId()===
Ensures that a row exists in the given tablet
Ensures that a row exists in the given tablet
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L193 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 193
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L193 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 193
*Signature: protected function ensureFormId($form,$col,$parent_col)
*Signature: protected function ensureFormId($form,$col,$parent_col)
*Parameters:
*Parameters:
Line 56: Line 56:
===fieldIsColumn()===
===fieldIsColumn()===
Check if the given data is the data for a column
Check if the given data is the data for a column
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L355 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 355
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L355 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 355
*Signature: protected function fieldIsColumn($data)
*Signature: protected function fieldIsColumn($data)
*Parameters:
*Parameters:
Line 63: Line 63:
===getFieldData()===
===getFieldData()===
Get how the given data should be queried from the db
Get how the given data should be queried from the db
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L368 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 368
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L368 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 368
*Signature: protected function getFieldData($data)
*Signature: protected function getFieldData($data)
*Parameters:
*Parameters:
Line 70: Line 70:
===getFieldSave()===
===getFieldSave()===
Get/prepare the prepared statement for the given field obj
Get/prepare the prepared statement for the given field obj
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L327 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 327
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L327 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 327
*Signature: protected function getFieldSave($fieldObj)
*Signature: protected function getFieldSave($fieldObj)
*Parameters:
*Parameters:
Line 77: Line 77:
===getFormObj()===
===getFormObj()===
Get a (cached) form object for the given form
Get a (cached) form object for the given form
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L394 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 394
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L394 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 394
*Signature: protected function getFormObj($form)
*Signature: protected function getFormObj($form)
*Parameters:
*Parameters:
Line 84: Line 84:
===getRequiredFieldsQuery()===
===getRequiredFieldsQuery()===
Construct a query (to be used as a sub-select) to view the fields of the given form.  It always will return the id of the form as well @param callback $field_refernece_callback.  A callback function whose first arguement is the form, the second arguements is the field and which returns the way the field value should be references as a field.  If the callback is null (the default) then the reference used is "$form+$field"
Construct a query (to be used as a sub-select) to view the fields of the given form.  It always will return the id of the form as well @param callback $field_refernece_callback.  A callback function whose first arguement is the form, the second arguements is the field and which returns the way the field value should be references as a field.  If the callback is null (the default) then the reference used is "$form+$field"
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L431 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 431
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L432 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 432
*Signature: public function getRequiredFieldsQuery($form,$fields,$id,$parent,$field_reference_callback,$mod_time)
*Signature: public function getRequiredFieldsQuery($form,$fields,$id,$parent,$field_reference_callback,$mod_time,$user)
*Parameters:
*Parameters:
** [http://www.php.net/manual/en/language.types.string.php string ] $form
** [http://www.php.net/manual/en/language.types.string.php string ] $form
Line 97: Line 97:
** integer $mod_time <br/>Defaults to -1.  If non-negative, we only list the requested fields for an id if at least one of them has a modification time greater than or equal to $mod_time.  If the form storage has no way of tracking modifucation time, all entries are listed.
** integer $mod_time <br/>Defaults to -1.  If non-negative, we only list the requested fields for an id if at least one of them has a modification time greater than or equal to $mod_time.  If the form storage has no way of tracking modifucation time, all entries are listed.
***Default Value: -1
***Default Value: -1
** [http://www.php.net/manual/en/language.pseudo-types.php mixed ] $user <br/>The user id of the user to limit the results to so it only returns results limited to that user.  This can be a single value or an array
***Default Value: false
*Returns: [http://www.php.net/manual/en/language.types.string.php string ]<br/>the query or false on failed.
*Returns: [http://www.php.net/manual/en/language.types.string.php string ]<br/>the query or false on failed.
===getSaveColumns()===
===getSaveColumns()===
Get the columsn which can save for the specidied form
Get the columsn which can save for the specidied form
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L62 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 62
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L62 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 62
*Signature: protected function getSaveColumns($form)
*Signature: protected function getSaveColumns($form)
*Parameters:
*Parameters:
Line 107: Line 109:
===getTable()===
===getTable()===
Gets the table for the specified form
Gets the table for the specified form
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L160 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 160
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L160 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 160
*Signature: protected function getTable($form)
*Signature: protected function getTable($form)
*Parameters:
*Parameters:
Line 114: Line 116:
===isWritable()===
===isWritable()===
Checks to see if this storage mechansim is writable
Checks to see if this storage mechansim is writable
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L43 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 43
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L43 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 43
*Signature: public function isWritable()
*Signature: public function isWritable()
*Returns: boolean.<br/>false
*Returns: boolean.<br/>false
===save()===
===save()===
Save a form object into entry tables.
Save a form object into entry tables.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L234 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 234
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php#L234 i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php] on line 234
*Signature: public function save($form,$user,$transact)
*Signature: public function save($form,$user,$transact)
*Parameters:
*Parameters:
Line 137: Line 139:
===getRecords()===
===getRecords()===
This public method is inherited from [[Class: I2CE_FormStorage_DB (Development)#getRecords() | I2CE_FormStorage_DB->getRecords()]]
This public method is inherited from [[Class: I2CE_FormStorage_DB (Development)#getRecords() | I2CE_FormStorage_DB->getRecords()]]
===globalFieldUpdateBySQL()===
This public method is inherited from [[Class: I2CE_FormStorage_DB (Development)#globalFieldUpdateBySQL() | I2CE_FormStorage_DB->globalFieldUpdateBySQL()]]
===hasGlobalFieldUpdateBySql()===
This public method is inherited from [[Class: I2CE_FormStorage_DB (Development)#hasGlobalFieldUpdateBySql() | I2CE_FormStorage_DB->hasGlobalFieldUpdateBySql()]]


===listDisplayFields()===
===listDisplayFields()===
Line 161: Line 169:
===FF_IG_setSequence()===
===FF_IG_setSequence()===
This public method is inherited from [[Class: I2CE_FormStorage_Mechanism (Development)#FF_IG_setSequence() | I2CE_FormStorage_Mechanism->FF_IG_setSequence()]]
This public method is inherited from [[Class: I2CE_FormStorage_Mechanism (Development)#FF_IG_setSequence() | I2CE_FormStorage_Mechanism->FF_IG_setSequence()]]
===changeID()===
This public method is inherited from [[Class: I2CE_FormStorage_Mechanism (Development)#changeID() | I2CE_FormStorage_Mechanism->changeID()]]


===delete()===
===delete()===
Line 167: Line 178:
===getFormsById()===
===getFormsById()===
This public method is inherited from [[Class: I2CE_FormStorage_Mechanism (Development)#getFormsById() | I2CE_FormStorage_Mechanism->getFormsById()]]
This public method is inherited from [[Class: I2CE_FormStorage_Mechanism (Development)#getFormsById() | I2CE_FormStorage_Mechanism->getFormsById()]]
===globalFieldUpdateByFunction()===
This public method is inherited from [[Class: I2CE_FormStorage_Mechanism (Development)#globalFieldUpdateByFunction() | I2CE_FormStorage_Mechanism->globalFieldUpdateByFunction()]]
===hasRecord()===
This public method is inherited from [[Class: I2CE_FormStorage_Mechanism (Development)#hasRecord() | I2CE_FormStorage_Mechanism->hasRecord()]]


===populateHistory()===
===populateHistory()===
This public method is inherited from [[Class: I2CE_FormStorage_Mechanism (Development)#populateHistory() | I2CE_FormStorage_Mechanism->populateHistory()]]
This public method is inherited from [[Class: I2CE_FormStorage_Mechanism (Development)#populateHistory() | I2CE_FormStorage_Mechanism->populateHistory()]]
===release()===
This public method is inherited from [[Class: I2CE_FormStorage_Mechanism (Development)#release() | I2CE_FormStorage_Mechanism->release()]]


===setStorageOptions()===
===setStorageOptions()===

Latest revision as of 09:14, 6 May 2015


This article describes the class I2CE_FormStorage_Flat .

@filesource Class I2CE_FormStorage_Flat

Variables

$saveStmts

@protected array $saveStmts An array of prepared statements for saving indexed by the form name

$saveCols

. An array, indexed by form name, of arrays of pairs fieldnames=>column names

$fieldSaves

. Array indexed by form name of array, indexed by field name, of prepared save statements for a field

$formObjs

. Keys are form names, values are instanceof I2CE_Form

Methods

FF_save()

Save the FormField to the database.

__construct()

The constructor for the storage mechanism

ensureFormId()

Ensures that a row exists in the given tablet

fieldIsColumn()

Check if the given data is the data for a column

getFieldData()

Get how the given data should be queried from the db

getFieldSave()

Get/prepare the prepared statement for the given field obj

getFormObj()

Get a (cached) form object for the given form

getRequiredFieldsQuery()

Construct a query (to be used as a sub-select) to view the fields of the given form. It always will return the id of the form as well @param callback $field_refernece_callback. A callback function whose first arguement is the form, the second arguements is the field and which returns the way the field value should be references as a field. If the callback is null (the default) then the reference used is "$form+$field"

  • Defined in i2ce/modules/Forms/modules/FormStorage/modules/FormStorageFlat/lib/I2CE_FormStorage_flat.php on line 432
  • Signature: public function getRequiredFieldsQuery($form,$fields,$id,$parent,$field_reference_callback,$mod_time,$user)
  • Parameters:
    • string $form
    • mixed $fields
      Either a string, the field, or an array of string, the fields.
    • mixed $id
      Defaults to null. If non-null it is the id that we wish to limit to.
      • Default Value: null
    • boolean $parent
      Defaults to false. If true, we include the parent id as a referenced field If it is scalar and non-boolean, it is consider to be the ID of the parent, and then we get all forms with parent the given id.
      • Default Value: false
    • $field_reference_callback
      • Default Value: null
    • integer $mod_time
      Defaults to -1. If non-negative, we only list the requested fields for an id if at least one of them has a modification time greater than or equal to $mod_time. If the form storage has no way of tracking modifucation time, all entries are listed.
      • Default Value: -1
    • mixed $user
      The user id of the user to limit the results to so it only returns results limited to that user. This can be a single value or an array
      • Default Value: false
  • Returns: string
    the query or false on failed.

getSaveColumns()

Get the columsn which can save for the specidied form

getTable()

Gets the table for the specified form

isWritable()

Checks to see if this storage mechansim is writable

save()

Save a form object into entry tables.

Inherited Methods

FF_populateHistory()

This public method is inherited from I2CE_FormStorage_DB->FF_populateHistory()

getFields()

This public method is inherited from I2CE_FormStorage_DB->getFields()

getIdsAsChild()

This public method is inherited from I2CE_FormStorage_DB->getIdsAsChild()

getRecords()

This public method is inherited from I2CE_FormStorage_DB->getRecords()

globalFieldUpdateBySQL()

This public method is inherited from I2CE_FormStorage_DB->globalFieldUpdateBySQL()

hasGlobalFieldUpdateBySql()

This public method is inherited from I2CE_FormStorage_DB->hasGlobalFieldUpdateBySql()

listDisplayFields()

This public method is inherited from I2CE_FormStorage_DB->listDisplayFields()

listFields()

This public method is inherited from I2CE_FormStorage_DB->listFields()

lookupDisplayField()

This public method is inherited from I2CE_FormStorage_DB->lookupDisplayField()

lookupField()

This public method is inherited from I2CE_FormStorage_DB->lookupField()

populate()

This public method is inherited from I2CE_FormStorage_DB->populate()

search()

This public method is inherited from I2CE_FormStorage_DB->search()

queryLastListCount()

This protected method is inherited from I2CE_FormStorage_DB->queryLastListCount()

FF_IG_setSequence()

This public method is inherited from I2CE_FormStorage_Mechanism->FF_IG_setSequence()

changeID()

This public method is inherited from I2CE_FormStorage_Mechanism->changeID()

delete()

This public method is inherited from I2CE_FormStorage_Mechanism->delete()

getFormsById()

This public method is inherited from I2CE_FormStorage_Mechanism->getFormsById()

globalFieldUpdateByFunction()

This public method is inherited from I2CE_FormStorage_Mechanism->globalFieldUpdateByFunction()

hasRecord()

This public method is inherited from I2CE_FormStorage_Mechanism->hasRecord()

populateHistory()

This public method is inherited from I2CE_FormStorage_Mechanism->populateHistory()

release()

This public method is inherited from I2CE_FormStorage_Mechanism->release()

setStorageOptions()

This public method is inherited from I2CE_FormStorage_Mechanism->setStorageOptions()

compareFormsByFields()

This protected method is inherited from I2CE_FormStorage_Mechanism->compareFormsByFields()

getLimitedFields()

This protected method is inherited from I2CE_FormStorage_Mechanism->getLimitedFields()

getStorageOptions()

This protected method is inherited from I2CE_FormStorage_Mechanism->getStorageOptions()

_hasMethod()

This public method is inherited from I2CE_Fuzzy->_hasMethod()

Inherited Variables

$db

Theis protected variable is inherited from I2CE_FormStorage_DB->$db

$name

Theis protected variable is inherited from I2CE_FormStorage_Mechanism->$name

$global_options

Theis protected variable is inherited from I2CE_FormStorage_Mechanism->$global_options

$storage_options_cache

Theis protected variable is inherited from I2CE_FormStorage_Mechanism->$storage_options_cache

$ordering

Theis protected variable is inherited from I2CE_FormStorage_Mechanism->$ordering

Inherited Fuzzy Methods

userMessage()

This method is inherited from I2CE_Fuzzy->userMessage()