//Get departments $department_options = $department_manual_id_options = array(); $dlf = new DepartmentListFactory(); $dlf->getByCompanyId($mapped_row['company_id']); if ($dlf->getRecordCount() > 0) { foreach ($dlf as $d_obj) { $department_options[$d_obj->getId()] = $d_obj->getName(); $department_manual_id_options[$d_obj->getId()] = $d_obj->getManualId(); } } //$department_options = (array)$dlf->getArrayByListFactory( $dlf, FALSE, TRUE ); unset($dlf, $d_obj); //Get groups $uglf = new UserGroupListFactory(); $uglf->getByCompanyId($mapped_row['company_id']); $group_options = (array) $uglf->getArrayByListFactory($uglf, FALSE, TRUE); unset($uglf); //Get job titles $utlf = new UserTitleListFactory(); $utlf->getByCompanyId($mapped_row['company_id']); $title_options = (array) $utlf->getArrayByListFactory($utlf, FALSE, TRUE); unset($utlf); $uf->setCompany(Misc::importCallInputParseFunction('company_id', $mapped_row['company_id'], $filtered_import_map['company_id']['default_value'], $filtered_import_map['company_id']['parse_hint'])); } if (isset($mapped_row['status_id']) and $mapped_row['status_id'] != '') { $uf->setStatus(Misc::importCallInputParseFunction('status_id', $mapped_row['status_id'], $filtered_import_map['status_id']['default_value'], $filtered_import_map['status_id']['parse_hint'])); } if (isset($mapped_row['currency_id']) and $mapped_row['currency_id'] != '') { $uf->setCurrency(Misc::importCallInputParseFunction('currency_id', $mapped_row['currency_id'], $filtered_import_map['currency_id']['default_value'], $filtered_import_map['currency_id']['parse_hint'])); } if (isset($mapped_row['employee_number']) and $mapped_row['employee_number'] != '') {