Public Member Functions | |
setStrict ($strict) | |
setPolicy ($policy) | |
setReset ($reset) | |
setCsvOptions ($csvSeparator= ';', $csvEnclosure= '"', $csvLinebreak = '\n') | |
setTargetDirectory ($dirid) | |
importDocuments (Action &$action, $file, $onlyAnalyze=false, $archive=false) | |
setVerifyAttributeAccess ($verifyAttributeAccess) | |
importSingleFile ($file) | |
getErrorMessage () | |
writeHTMLImportLog ($log) | |
writeHtmlCr (Layout &$lay) | |
writeImportLog ($log) | |
Static Public Member Functions | |
static | isdoc ($var) |
static | isprof ($var) |
Protected Attributes | |
$fileName = '' | |
$csvSeparator = ';' | |
$csvEnclosure = '' | |
$csvLinebreak = '\n' | |
$policy = "update" | |
$verifyAttributeAccess = true | |
$reset = array() | |
Definition at line 7 of file Class.importDocument.php.
getErrorMessage | ( | ) |
return all error message concatenated
Definition at line 198 of file Class.importDocument.php.
Action | $action | current action |
string | $file | filename path to import |
bool | $onlyAnalyze | if true only analyze not import really |
bool | $archive | if true to import file like an standard archive |
Definition at line 89 of file Class.importDocument.php.
importSingleFile | ( | $file | ) |
Definition at line 183 of file Class.importDocument.php.
|
static |
Definition at line 340 of file Class.importDocument.php.
|
static |
Definition at line 345 of file Class.importDocument.php.
setCsvOptions | ( | $csvSeparator = ';' , |
|
$csvEnclosure = '"' , |
|||
$csvLinebreak = '\n' |
|||
) |
Definition at line 71 of file Class.importDocument.php.
setPolicy | ( | $policy | ) |
Definition at line 58 of file Class.importDocument.php.
setReset | ( | $reset | ) |
Definition at line 62 of file Class.importDocument.php.
setStrict | ( | $strict | ) |
set strict mode
bool | $strict | set to false to accept error when import |
Definition at line 54 of file Class.importDocument.php.
setTargetDirectory | ( | $dirid | ) |
Definition at line 78 of file Class.importDocument.php.
setVerifyAttributeAccess | ( | $verifyAttributeAccess | ) |
boolean | $verifyAttributeAccess |
Definition at line 179 of file Class.importDocument.php.
writeHtmlCr | ( | Layout & | $lay | ) |
internal method use only from freedom_import
Layout | $lay |
Definition at line 235 of file Class.importDocument.php.
writeHTMLImportLog | ( | $log | ) |
write report in file
string | $log | filename path to write in |
Definition at line 215 of file Class.importDocument.php.
writeImportLog | ( | $log | ) |
record a log file from import results
string | $log | output file path |
Definition at line 303 of file Class.importDocument.php.
|
protected |
Definition at line 33 of file Class.importDocument.php.
|
protected |
Definition at line 37 of file Class.importDocument.php.
|
protected |
Definition at line 29 of file Class.importDocument.php.
|
protected |
Definition at line 21 of file Class.importDocument.php.
|
protected |
Definition at line 41 of file Class.importDocument.php.
|
protected |
Definition at line 48 of file Class.importDocument.php.
|
protected |
Definition at line 46 of file Class.importDocument.php.