Go to the source code of this file.
◆ dataImportDummySave()
dataImportDummySave |
( |
|
$form | ) |
|
◆ uploadDataImportFile()
uploadDataImportFile |
( |
|
$field | ) |
|
Definition at line 42 of file data_import.inc.
48 $fullpath =
$config[
"uploadbase"] . DIRECTORY_SEPARATOR . basename(
$file);
50 if (file_exists($fullpath))
55 trace(
"Uploading $file to $fullpath", 3);
57 move_uploaded_file(
$file, $fullpath);
58 chmod($fullpath, 0755);
60 $_SESSION[
"data_import_file"] = $fullpath;
◆ $dummy
◆ $form
$form = new AutoForm($dummy) |
◆ $menu_item
$menu_item = "Data Import" |
◆ $script
if ( $method=="POST") $script = $form->writeScript() |
◆ $tabs
◆ $upload
$upload = new FileUploadFieldRenderer($form, "csv_file", "CSV File", uploadDataImportFile) |
◆ customSaveHandler
◆ filter
$dummy filter = new InclusionFilter("mapping_id") |
◆ submitLabel
$form submitLabel = "Upload Data" |