class CRM_Utils_Migrate_Export

Constants

XML_VALUE_SEPARATOR

Properties

protected array $_xml

Methods

__construct()

Class constructor.

build()

Scan local customizations and build an in-memory representation.

buildCustomGroups(array $customGroupIds)

Build custom groups.

buildUFGroups(array $ufGroupIds)

No description

string
toXML()

Render the in-memory representation as XML

array
toArray()

Generate an array-tree representation of the exported elements.

fetch(string $groupName, string $daoName, null $sql = NULL)

No description

array
computeMappedFields(array $mappedFields, CRM_Core_DAO $dao)

Compute any fields of the entity defined by the $mappedFields specification

array
exportDAO(string $objectName, CRM_Core_DAO $object, $mappedFields)

No description

string
renderKeyValueXML(string $tagName, array $keyValues)

No description

string
renderTextTag(string $name, string $value, string $prefix = '')

No description

Details

at line 56
__construct()

Class constructor.

at line 170
build()

Scan local customizations and build an in-memory representation.

at line 271
buildCustomGroups(array $customGroupIds)

Build custom groups.

Parameters

array $customGroupIds List of custom groups to export.

at line 324
buildUFGroups(array $ufGroupIds)

Parameters

array $ufGroupIds List of custom groups to export.

at line 363
string toXML()

Render the in-memory representation as XML

Return Value

string XML

at line 387
array toArray()

Generate an array-tree representation of the exported elements.

Return Value

array

at line 402
fetch(string $groupName, string $daoName, null $sql = NULL)

Parameters

string $groupName
string $daoName
null $sql

at line 438
array computeMappedFields(array $mappedFields, CRM_Core_DAO $dao)

Compute any fields of the entity defined by the $mappedFields specification

Parameters

array $mappedFields Each item is an array(0 => MappedEntityname, 1 => InputFieldName (id-field), 2 => OutputFieldName (name-field), 3 => OptionalPrefix).
CRM_Core_DAO $dao The entity for which we want to prepare mapped fields.

Return Value

array new fields

at line 464
array exportDAO(string $objectName, CRM_Core_DAO $object, $mappedFields)

Parameters

string $objectName Business-entity/xml-tag name.
CRM_Core_DAO $object
$mappedFields

Return Value

array

at line 553
string renderKeyValueXML(string $tagName, array $keyValues)

Parameters

string $tagName
array $keyValues

Return Value

string XML

Exceptions

Exception

at line 573
string renderTextTag(string $name, string $value, string $prefix = '')

Parameters

string $name Tag name.
string $value Text.
string $prefix

Return Value

string XML

Exceptions

Exception