Definition at line 59 of file data_sync_manager.inc.
◆ closeImportFile()
DataSyncCSVAdapter::closeImportFile |
( |
|
$fp | ) |
|
◆ countRecords()
DataSyncCSVAdapter::countRecords |
( |
|
$file | ) |
|
◆ getImportColumns()
DataSyncCSVAdapter::getImportColumns |
( |
|
$file | ) |
|
◆ getRecord()
DataSyncCSVAdapter::getRecord |
( |
|
$fp, |
|
|
|
$columns |
|
) |
| |
◆ openImportFile()
DataSyncCSVAdapter::openImportFile |
( |
|
$file, |
|
|
& |
$columns |
|
) |
| |
Implements IDataSyncAdapter.
Definition at line 131 of file data_sync_manager.inc.
138 if (!file_exists(
$file))
143 trace(
"Opening import file $file", 3);
146 $fp = fopen_utf8(
$file);
148 $fields = fgetcsv_noBOM($fp);
150 foreach($fields as
$field)
FakoliException is the base exception class for all Fakoli errors.
◆ skipToOffset()
DataSyncCSVAdapter::skipToOffset |
( |
|
$fp, |
|
|
|
$offset = -1 |
|
) |
| |
◆ uploadDataImportFile()
DataSyncCSVAdapter::uploadDataImportFile |
( |
|
$field | ) |
|
Implements IDataSyncAdapter.
Definition at line 62 of file data_sync_manager.inc.
68 $fullpath =
$config[
"uploadbase"] . DIRECTORY_SEPARATOR . basename(
$file);
70 if (file_exists($fullpath))
75 trace(
"Uploading $file to $fullpath", 3);
77 move_uploaded_file(
$file, $fullpath);
78 chmod($fullpath, 0755);
The documentation for this class was generated from the following file: