dolibarr 18.0.6
|
Class to manage imports. More...
Public Member Functions | |
__construct ($db) | |
Constructor. | |
load_arrays ($user, $filter='') | |
Load description int this->array_import_module, this->array_import_fields, ... of an importable dataset. | |
build_example_file ($model, $headerlinefields, $contentlinevalues, $datatoimport) | |
Build an import example file. | |
create ($user) | |
Save an export model in database. | |
fetch ($id) | |
Load an import profil from database. | |
delete ($user, $notrigger=0) | |
Delete object in database. | |
Class to manage imports.
Definition at line 30 of file import.class.php.
Import::__construct | ( | $db | ) |
Import::build_example_file | ( | $model, | |
$headerlinefields, | |||
$contentlinevalues, | |||
$datatoimport ) |
Build an import example file.
Arrays this->array_export_xxx are already loaded for required datatoexport
string | $model | Name of import engine ('csv', ...) |
string | $headerlinefields | Array of values for first line of example file |
string | $contentlinevalues | Array of values for content line of example file |
string | $datatoimport | Dataset to import |
Definition at line 226 of file import.class.php.
References dol_syslog().
Import::create | ( | $user | ) |
Save an export model in database.
User | $user | Object user that save |
Definition at line 266 of file import.class.php.
References dol_syslog().
Import::delete | ( | $user, | |
$notrigger = 0 ) |
Delete object in database.
Definition at line 350 of file import.class.php.
References dol_syslog().
Import::fetch | ( | $id | ) |
Load an import profil from database.
int | $id | Id of profil to load |
Definition at line 316 of file import.class.php.
References dol_print_error(), and dol_syslog().
Import::load_arrays | ( | $user, | |
$filter = '' ) |
Load description int this->array_import_module, this->array_import_fields, ... of an importable dataset.
User | $user | Object user making import |
string | $filter | Load a particular dataset only. Index will start to 0. |
Definition at line 95 of file import.class.php.
References dol_osencode(), dol_syslog(), and dolGetModulesDirs().