XML

Extensible Markup Language

Class Methods

The following methods can be invoked on instances of this class.

getDefaultMIMEType()

getDefaultFileExtension()

configSetFromFormValues(mixed arrValues)

processImport(mixed strData)

processExport(mixed arrRows, mixed iRecursionLevel)

getFieldsInImportData()

Returns the fields that exist in the export data

getImportForm()

Deprecated

configGetForm()

Returns a form for configuring an import

configSetHasHeadingRow(bool bConfigHasHeadingRow)

Sets whether this document has an initial row defining headings or not

configGetHasHeadingRow()

Returns whether this document has an initial row defining headings or not

configSetMappings(array arrConfigMappings)

Sets a map between keys in the raw data to keys for a data adapter
Example: array( 0 => 'contact_first_name', 1 => 'contact_last_name', 2 => 'contact_address' )

configSetMapping(mixed iColumn, string strKey)

Sets up a mapping

configGetMappings()

Returns the current mappings

configSetReadCallback(string strConfigReadCallback)

Registers a callback function to be invoked for each row after reading the data and
running the appropriate mappings The method signature of the callback function should be similar to: function myCallBack(&$arrEntity) { $arrEntity['key'] = 'newValue'; }

configGetReadCallback()

Returns the current read callback function

configSetWriteCallback(string strConfigWriteCallback)

Registers a callback function to be invoked for each row before writing to the
data adapter The method signature of the callback function should be similar to: function myCallBack(&$arrEntity) { $arrEntity['key'] = 'newValue'; }

configGetWriteCallback()

Returns the current write callback function

configSetAdditional(array arrConfigAdditional)

Sets additional configuration for the callback functions

configGetAdditional()

Returns the additional configuration

configSetOverwriteExisting(bool bConfigOverwriteExisting)

Sets whether to overwrite existing data when writing to a data adapter

configGetOverwriteExisting()

Returns whether to overwrite existing data when writing to a data adapter

getOverwriteExisting()

setDataCell(mixed iRow, mixed strColumn, mixed strNewValue)

importFromString(string strImportData)

Imports data from a string

importFromArray(mixed arrData)

exportToString()

Exports the import data to a string

exportToArray()

Exports the import data to an array

exportToOutput(string strFileName)

Exports the data to output / file download

exportToComponent(mixed strComponent)

Writes data to a component

mapFields(mixed arrRows, mixed bImport)

__call(mixed strName, array arrArguments)

Magic function to trap calls to undefined functions and throw an exception rather than
a fatal error.

__callStatic(mixed strName, array arrArguments)

Magic function to trap static calls to undefined functions and throw an exception rather
than a fatal error.

classGetFolder()

Returns the folder where the class exists

__set_state(mixed arrValues)

classGetFolderResources()

Returns the folder where the class's resources exist

classGetSrcFile()

Returns the folder where the class exists

classGetSrcHash()

Returns the folder where the class exists

classGetReflection()

Returns the reflection data for the current class

classGetReflectionAnnotation(string strField)

Returns a specific class annotation for the current class