modules/Import/Importer.php
\Importer
Package:
Properties
Methods

_convertId(
string $string
)
:
stringclean id's when being imported
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $string | string |
| Type | Description |
|---|---|
| string |

_undoCreatedBeans(
array $ids
)
:
voidIf a bean save is not done for some reason, this method will undo any of the beans that were created
Parameters
| Name | Type | Description |
|---|---|---|
| $ids | array | ids of user_last_import records created |

checkRelatedIDsAfterSave(
$focus
)
:
voidupon bean save, the relationships are saved by SugarBean->save_relationship_changes() method, but those values depend on the request object and is not reliable during import. This function makes sure any defined related or parent id's are processed and their relationship saved.
Parameters
| Name | Type | Description |
|---|---|---|
| $focus |

handleImportErrors(
int $errno, string $errstr, string $errfile, string $errline
)
:
void
static
Replaces PHP error handler in Step4
Parameters
| Name | Type | Description |
|---|---|---|
| $errno | int | |
| $errstr | string | |
| $errfile | string | |
| $errline | string |

populateDefaultMapValue(
$field, $fieldValue, $fieldDef
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $field | ||
| $fieldValue | ||
| $fieldDef |

sanitizeFieldValueByType(
$rowValue, $fieldDef, $defaultRowValue, $focus, $fieldTranslated
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $rowValue | ||
| $fieldDef | ||
| $defaultRowValue | ||
| $focus | ||
| $fieldTranslated |