Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

  • cContentTypePifaForm
  • DefaultFormModule
  • DefaultFormProcessor
  • ExampleOptionsDatasource
  • MailedFormProcessor
  • Pifa
  • PifaAbstractFormModule
  • PifaAbstractFormProcessor
  • PifaAjaxHandler
  • PifaExporter
  • PifaExternalOptionsDatasourceInterface
  • PifaField
  • PifaFieldCollection
  • PifaForm
  • PifaFormCollection
  • PifaImporter
  • PifaLeftBottomPage
  • PifaRightBottomFormDataPage
  • PifaRightBottomFormExportPage
  • PifaRightBottomFormFieldsPage
  • PifaRightBottomFormImportPage
  • PifaRightBottomFormPage
  • SolrRightBottomPage

Exceptions

  • PifaDatabaseException
  • PifaException
  • PifaIllegalStateException
  • PifaMailException
  • PifaNotImplementedException
  • PifaNotYetStoredException
  • PifaValidationException
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

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 Gnaß <marcus.gnass@4fb.de>
Located at plugins/form_assistant/classes/class.pifa.importer.php
Methods summary
public
# __construct( )

Create an instance. Creates XML reader member instances.

Create an instance. Creates XML reader member instances.

public
# setTableName( string $_tableName )

Parameters

$_tableName
string
$_tableName
public
# import( string $xml )

Import the given XML.

Import the given XML.

Parameters

$xml
string
$xml to import

Throws

PifaException
if XML could not be loaded
PifaException
if existance of table could not be determined
PifaException
if table already exists
PifaException
if table could not be created
private PifaForm
# _createPifaForm( DOMElement $formElem )

Create new PIFA form for current client and language.

Create new PIFA form for current client and language.

Parameters

$formElem
DOMElement
$formElem to get data from

Returns

PifaForm
private PifaForm
# _createPifaField( DOMElement $fieldElem, PifaForm $pifaForm )

Create PIFA field for given PIFA form..

Create PIFA field for given PIFA form..

Parameters

$fieldElem
DOMElement
$formElem to create field for
$pifaForm

Returns

PifaForm
private
# _checkTableName( )
private
# _getPifaFieldTypeId( string $fieldTypeName )

Map a PIFA field name to a numeric ID that is used to identify the appropriate database record.

Map a PIFA field name to a numeric ID that is used to identify the appropriate database record.

Parameters

$fieldTypeName
string
$fieldTypeName to map
private string
# _unCdata( string $str )

Remove CDATA syntax from a string using a regular expression.

Remove CDATA syntax from a string using a regular expression.

Parameters

$str
string
$str to handle

Returns

string

Throws

PifaException
Properties summary
private cXmlReader $_reader
#

The XML reader that is used to import a XML file.

The XML reader that is used to import a XML file.

private PifaFormCollection $_pifaFormColl
#

PIFA form collection used to create new item.

PIFA form collection used to create new item.

private PifaFieldCollection $_pifaFieldColl
#

PIFA field collection used to create new item.

PIFA field collection used to create new item.

private string $_tableName
#

Name of data table to create

Name of data table to create

CMS CONTENIDO 4.9.11 API documentation generated by ApiGen 2.8.0