Technical Overview: Form Storage -- SDMX-HD: Difference between revisions

From IHRIS Wiki
(Created page with 'This is a form storage mechanism designed to read data from an SDMX-HD code list file. This form storage mechanism is present in version >= 4.0.5. This is a read-only form stor…')
 
Line 6: Line 6:


The options specifying a SDMX-HD storage for $form are stored at:
The options specifying a SDMX-HD storage for $form are stored at:
  /modules/forms/forms/$form/storage_options/SDMX-HD
  /modules/forms/forms/$form/storage_options/SDMXHD
It has the following structure:
It has the following structure:



Revision as of 11:36, 21 May 2010

This is a form storage mechanism designed to read data from an SDMX-HD code list file. This form storage mechanism is present in version >= 4.0.5.

This is a read-only form storage mechanism.

Form Storage Options

The options specifying a SDMX-HD storage for $form are stored at:

/modules/forms/forms/$form/storage_options/SDMXHD

It has the following structure:

  • file: The SDMX-HD file that the data should be read from. This can either be an absolutely given file path, or a relative file path. If it is a relative file path, then it uses the SDMXHD file search category.
  • CodeListID: The code list ID to be read. This is for files that may have more than one code list defined. This must be set.

Global Options

There are global options for SDMX-HD form storage. They are specified at:

/modules/forms/storage_options/SDMX-HD

This has the structure:

  • closeFile: defaults to false. If true, we close the file between access. Otherwise, we allow PHP to handle closing the file resource at the end of the script's call.