class CRM_Utils_Migrate_Import

Methods

__construct()

Class constructor.

run(string $file)

Import custom-data from an XML file.

runXmlElement(SimpleXMLElement $xml)

Import custom-data from an XML element.

bool
copyData(CRM_Core_DAO $dao, $xml, bool $save = FALSE, null $keyName = NULL)

No description

optionGroups($xml, $idMap)

No description

optionValues($xml, $idMap)

No description

relationshipTypes($xml)

No description

contributionTypes($xml)

No description

customGroups($xml, $idMap)

No description

customFields($xml, $idMap)

No description

profileGroups($xml, $idMap)

No description

profileFields($xml, $idMap)

No description

profileJoins($xml, $idMap)

No description

Details

at line 38
__construct()

Class constructor.

at line 49
run(string $file)

Import custom-data from an XML file.

Parameters

string $file Path to an XML file.

Exceptions

CRM_Core_Exception

at line 67
runXmlElement(SimpleXMLElement $xml)

Import custom-data from an XML element.

Parameters

SimpleXMLElement $xml

at line 101
bool copyData(CRM_Core_DAO $dao, $xml, bool $save = FALSE, null $keyName = NULL)

Parameters

CRM_Core_DAO $dao
$xml
bool $save
null $keyName

Return Value

bool

at line 139
optionGroups($xml, $idMap)

Parameters

$xml
$idMap

at line 153
optionValues($xml, $idMap)

Parameters

$xml
$idMap

at line 180
relationshipTypes($xml)

Parameters

$xml

at line 193
contributionTypes($xml)

Parameters

$xml

at line 207
customGroups($xml, $idMap)

Parameters

$xml
$idMap

at line 349
customFields($xml, $idMap)

Parameters

$xml
$idMap

at line 402
profileGroups($xml, $idMap)

Parameters

$xml
$idMap

at line 419
profileFields($xml, $idMap)

Parameters

$xml
$idMap

Exceptions

Exception

at line 461
profileJoins($xml, $idMap)

Parameters

$xml
$idMap