Class PifaImporter
This class allows for exporting a PIFA form as XML. The exported file contains the structure of the form and its fields. Optionally the export file may contain the forms gathered data.
Example usage:
plugin_include('form_assistant', 'classes/class.pifa.importer.php'); $imp = new PifaImporter(); $imp->import($xml);
Package: Plugin\FormAssistant
Copyright: four for business AG
Author: marcus.gnass
Located at plugins/form_assistant/classes/class.pifa.importer.php
Copyright: four for business AG
Author: marcus.gnass
Located at plugins/form_assistant/classes/class.pifa.importer.php
public
|
|
public
|
|
public
|
|
private
|
|
private
|
#
_createPifaField( DOMElement $fieldElem,
Create PIFA field for given PIFA form.. |
private
|
|
private
|
#
_getPifaFieldTypeId( string $fieldTypeName )
Map a PIFA field name to a numeric ID that is used to identify the appropriate database record. |
private
string
|
private
|
$_reader |
|
#
The XML reader that is used to import a XML file. |
private
|
$_pifaFormColl |
|
#
PIFA form collection used to create new item. |
private
|
$_pifaFieldColl |
|
#
PIFA field collection used to create new item. |
private
string
|
$_tableName |
|
#
Name of data table to create |