Function __global->import_id_remap_get

Definitions

sources/import.php

  • Returns the NEW ID of an imported old ID, for the specified importation type. Whether it returns null or gives an error message depends on $fail_ok.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: int

Parameters

Name Type Default Set Range Description
$type ID_TEXT required parameter N/A N/A An importation type code, from those the software has defined (E.g. 'download', 'news', ...)
$id_old string required parameter N/A N/A The source (old, original) ID of the mapping
$fail_ok boolean False N/A N/A If it is okay to fail to find a mapping

Return

  • The new ID (null: not found)
  • Type: ?AUTO_LINK
  • Set: N/A
  • Range: N/A