Go to the source code of this file.
|
| | add_import_file (Action &$action, $fimport, $dirid=0) |
| |
| | csvAddDoc ($dbaccess, $data, $dirid=0, $analyze=false, $ldir= '', $policy="add", $tkey=array("title"), $prevalues=array(), $torder=array()) |
| |
| | AddImportLog ($msg) |
| |
| | getOrder (array $orderdata) |
| |
| | AddVaultFile ($dbaccess, $path, $analyze, &$vid) |
| |
| | seemsODS ($filename) |
| |
| | ods2csv ($odsfile) |
| |
| add_import_file |
( |
Action & |
$action, |
|
|
|
$fimport, |
|
|
|
$dirid = 0 |
|
) |
| |
| AddVaultFile |
( |
|
$dbaccess, |
|
|
|
$path, |
|
|
|
$analyze, |
|
|
& |
$vid |
|
) |
| |
| csvAddDoc |
( |
|
$dbaccess, |
|
|
|
$data, |
|
|
|
$dirid = 0, |
|
|
|
$analyze = false, |
|
|
|
$ldir = '', |
|
|
|
$policy = "add", |
|
|
|
$tkey = array( "title"), |
|
|
|
$prevalues = array(), |
|
|
|
$torder = array() |
|
) |
| |
Add a document from csv import file
- Parameters
-
| string | $dbaccess | database specification |
| array | $data | data information conform to Doc::GetImportAttributes() |
| int | $dirid | default folder id to add new document |
| bool | $analyze | true is want just analyze import file (not really import) |
| string | $ldir | path where to search imported files |
| string | $policy | add|update|keep policy use if similar document |
| array | $tkey | attribute key to search similar documents |
| array | $prevalues | default values for new documents |
| array | $torder | array to describe CSV column attributes double Http var : Y if want double title document |
- Returns
- array properties of document added (or analyzed to be added)
Definition at line 64 of file import_file.php.
| getOrder |
( |
array |
$orderdata | ) |
|
convert ods file in csv file the csv file must be delete by caller after using it
- Returns
- strint the path to the csv file
Definition at line 145 of file import_file.php.