Function Hook_import_cms_merge->_import_alternative_ids

Definitions

sources/hooks/modules/admin_import/cms_merge.php

  • Import alternative IDs of a given resource type.This must be called *after* importing the resources into the database and making note of their new IDs to map.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$db object No No required parameter N/A N/A The database connector to import from
$resource_type ID_TEXT No No required parameter N/A N/A The value of resource_type in the db to import
$import_type ?ID_TEXT No No required parameter N/A N/A The import_id_remap key applicable for this resource (null: not applicable; use the same resource_id from old site)

Preview

Code (PHP)

/**
 * Import alternative IDs of a given resource type.This must be called *after* importing the resources into the database and making note of their new IDs to map.
 *
 * @param  object $db The database connector to import from
 * @param  ID_TEXT $resource_type The value of resource_type in the db to import
 * @param  ?ID_TEXT $import_type The import_id_remap key applicable for this resource (null: not applicable; use the same resource_id from old site)
 */

protected function _import_alternative_ids(object $db, string $resource_type, ?string $import_type)