dolibarr
x.y.z
|
Class to manage imports. More...
Public Member Functions | |
__construct ($db) | |
Constructor. More... | |
load_arrays ($user, $filter='') | |
Load description int this->array_import_module, this->array_import_fields, ... More... | |
build_example_file ($model, $headerlinefields, $contentlinevalues, $datatoimport) | |
Build an import example file. More... | |
create ($user) | |
Save an export model in database. More... | |
fetch ($id) | |
Load an import profil from database. More... | |
delete ($user, $notrigger=0) | |
Delete object in database. More... | |
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 215 of file import.class.php.
Import::create | ( | $user | ) |
Save an export model in database.
User | $user | Object user that save |
Definition at line 255 of file import.class.php.
Import::delete | ( | $user, | |
$notrigger = 0 |
|||
) |
Delete object in database.
Definition at line 339 of file import.class.php.
Import::fetch | ( | $id | ) |
Load an import profil from database.
int | $id | Id of profil to load |
Definition at line 305 of file import.class.php.
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 84 of file import.class.php.