*
*/
class CRM_Utils_Migrate_Import {
+ /**
+ *
+ */
function __construct() {
}
CRM_Core_Config::clearDBCache();
}
+ /**
+ * @param $dao
+ * @param $xml
+ * @param bool $save
+ * @param null $keyName
+ *
+ * @return bool
+ */
function copyData(&$dao, &$xml, $save = FALSE, $keyName = NULL) {
if ($keyName) {
if (isset($xml->$keyName)) {
return TRUE;
}
+ /**
+ * @param $xml
+ * @param $idMap
+ */
function optionGroups(&$xml, &$idMap) {
foreach ($xml->OptionGroups as $optionGroupsXML) {
foreach ($optionGroupsXML->OptionGroup as $optionGroupXML) {
}
}
+ /**
+ * @param $xml
+ * @param $idMap
+ */
function optionValues(&$xml, &$idMap) {
foreach ($xml->OptionValues as $optionValuesXML) {
foreach ($optionValuesXML->OptionValue as $optionValueXML) {
}
}
+ /**
+ * @param $xml
+ */
function relationshipTypes(&$xml) {
foreach ($xml->RelationshipTypes as $relationshipTypesXML) {
}
}
+ /**
+ * @param $xml
+ */
function contributionTypes(&$xml) {
foreach ($xml->ContributionTypes as $contributionTypesXML) {
}
}
+ /**
+ * @param $xml
+ * @param $idMap
+ */
function customGroups(&$xml, &$idMap) {
foreach ($xml->CustomGroups as $customGroupsXML) {
foreach ($customGroupsXML->CustomGroup as $customGroupXML) {
}
}
+ /**
+ * @param $xml
+ * @param $idMap
+ */
function customFields(&$xml, &$idMap) {
// Re-index by group id so we can build out the custom fields one table
// at a time, and then rebuild the table triggers at the end, rather than
}
}
+ /**
+ * @param $xml
+ * @param $idMap
+ */
function dbTemplateString(&$xml, &$idMap) {
foreach ($xml->Persistent as $persistentXML) {
foreach ($persistentXML->Persistent as $persistent) {
}
}
+ /**
+ * @param $xml
+ * @param $idMap
+ */
function profileGroups(&$xml, &$idMap) {
foreach ($xml->ProfileGroups as $profileGroupsXML) {
foreach ($profileGroupsXML->ProfileGroup as $profileGroupXML) {
}
}
+ /**
+ * @param $xml
+ * @param $idMap
+ *
+ * @throws Exception
+ */
function profileFields(&$xml, &$idMap) {
foreach ($xml->ProfileFields as $profileFieldsXML) {
foreach ($profileFieldsXML->ProfileField as $profileFieldXML) {
}
}
+ /**
+ * @param $xml
+ * @param $idMap
+ */
function profileJoins(&$xml, &$idMap) {
foreach ($xml->ProfileJoins as $profileJoinsXML) {
foreach ($profileJoinsXML->ProfileJoin as $profileJoinXML) {