Documentation

CRM_Utils_Migrate_Import
in package

Tags
copyright

CiviCRM LLC https://civicrm.org/licensing

Table of Contents

Methods

__construct()  : mixed
Class constructor.
contributionTypes()  : mixed
copyData()  : bool
customFields()  : mixed
customGroups()  : mixed
optionGroups()  : mixed
optionValues()  : mixed
profileFields()  : mixed
profileGroups()  : mixed
profileJoins()  : mixed
relationshipTypes()  : mixed
run()  : mixed
Import custom-data from an XML file.
runXmlElement()  : mixed
Import custom-data from an XML element.
getOptionGroupIDFromName()  : int|null
Get Option Group ID.

Methods

__construct()

Class constructor.

public __construct() : mixed

contributionTypes()

public contributionTypes(SimpleXMLElement &$xml) : mixed
Parameters
$xml : SimpleXMLElement

copyData()

public copyData(CRM_Core_DAO &$dao, SimpleXMLElement &$xml[, bool $save = FALSE ][, string $keyName = NULL ]) : bool
Parameters
$dao : CRM_Core_DAO
$xml : SimpleXMLElement
$save : bool = FALSE
$keyName : string = NULL
Return values
bool

customFields()

public customFields(SimpleXMLElement &$xml, array<string|int, mixed> &$idMap) : mixed
Parameters
$xml : SimpleXMLElement
$idMap : array<string|int, mixed>

customGroups()

public customGroups(SimpleXMLElement &$xml, array<string|int, mixed> &$idMap) : mixed
Parameters
$xml : SimpleXMLElement
$idMap : array<string|int, mixed>

optionGroups()

public optionGroups(SimpleXMLElement &$xml, array<string|int, mixed> &$idMap) : mixed
Parameters
$xml : SimpleXMLElement
$idMap : array<string|int, mixed>

optionValues()

public optionValues(SimpleXMLElement &$xml, array<string|int, mixed> &$idMap) : mixed
Parameters
$xml : SimpleXMLElement
$idMap : array<string|int, mixed>

profileFields()

public profileFields(SimpleXMLElement &$xml, array<string|int, mixed> &$idMap) : mixed
Parameters
$xml : SimpleXMLElement
$idMap : array<string|int, mixed>
Tags
throws
CRM_Core_Exception

profileGroups()

public profileGroups(SimpleXMLElement &$xml, array<string|int, mixed> &$idMap) : mixed
Parameters
$xml : SimpleXMLElement
$idMap : array<string|int, mixed>

profileJoins()

public profileJoins(SimpleXMLElement &$xml, array<string|int, mixed> &$idMap) : mixed
Parameters
$xml : SimpleXMLElement
$idMap : array<string|int, mixed>

relationshipTypes()

public relationshipTypes(SimpleXMLElement &$xml) : mixed
Parameters
$xml : SimpleXMLElement

run()

Import custom-data from an XML file.

public run(string $file) : mixed
Parameters
$file : string

Path to an XML file.

Tags
throws
CRM_Core_Exception

runXmlElement()

Import custom-data from an XML element.

public runXmlElement(SimpleXMLElement $xml) : mixed
Parameters
$xml : SimpleXMLElement

getOptionGroupIDFromName()

Get Option Group ID.

private getOptionGroupIDFromName(mixed $groupName, array<string|int, mixed> &$idMap) : int|null

Returns an option group's ID, given its name.

Parameters
$groupName : mixed
$idMap : array<string|int, mixed>
Return values
int|null

        
On this page

Search results