Technical Overview: Form Storage -- SDMX-HD

From IHRIS Wiki

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.