本文整理匯總了PHP中ImportMap::getSavedMappingContent方法的典型用法代碼示例。如果您正苦於以下問題:PHP ImportMap::getSavedMappingContent方法的具體用法?PHP ImportMap::getSavedMappingContent怎麽用?PHP ImportMap::getSavedMappingContent使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ImportMap
的用法示例。
在下文中一共展示了ImportMap::getSavedMappingContent方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
global $adb;
$query = "select * from vtiger_import_maps where deleted=0 and name=?";
$Result = $adb->pquery($query, array($map_name));
$noofrows = $adb->num_rows($Result);
if ($noofrows > 0) {
echo "false";
} else {
echo "true";
}
} else {
if ($_REQUEST['delete_map'] != '') {
$query = "update vtiger_import_maps set deleted=1 where id = ?";
$adb->pquery($query, array($_REQUEST['mapping']));
}
$mapping_file = new ImportMap();
$mapping_arr = $mapping_file->getSavedMappingContent($_REQUEST['mapping']);
$importable_fields = $_SESSION['import_module_object_column_fields'];
$field_count = $_SESSION['import_module_field_count'];
$required_fields = $_SESSION['import_module_object_required_fields'];
$translated_column_fields = $_SESSION['import_module_translated_column_fields'];
$tablename = '';
$has_header = $_SESSION['import_has_header'];
$firstrow = $_SESSION['import_firstrow'];
$field_map =& $mapping_arr;
//$_SESSION['import_field_map'];
$smarty_array1 = array();
for ($i = 0; $i < $field_count; $i++) {
$suggest = '';
if ($has_header && isset($field_map[$firstrow[$i]])) {
$suggest = $field_map[$firstrow[$i]];
} else {