/** * @param boolean|string $overwrite ; TRUE (always overwrite), FALSE (preserve with error), 'ignore' (preserve quietly) */ function __construct($customGroupIds, $ufGroupIds, $path, $overwrite) { $this->customGroupIds = $customGroupIds; $this->ufGroupIds = $ufGroupIds; $this->path = $path; $this->overwrite = $overwrite; $this->export = new \CRM_Utils_Migrate_Export(); $this->export->buildCustomGroups($this->customGroupIds); $this->export->buildUFGroups($this->ufGroupIds); }