Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
import_file.php File Reference

Go to the source code of this file.

Namespaces

 FDL
 

Functions

 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)
 

Variables

const ALTSEPCHAR ' --- '
 
const SEPCHAR ';'
 

Function Documentation

add_import_file ( Action $action,
  $fimport,
  $dirid = 0 
)

Definition at line 28 of file import_file.php.

+ Here is the call graph for this function:

AddImportLog (   $msg)

Definition at line 80 of file import_file.php.

AddVaultFile (   $dbaccess,
  $path,
  $analyze,
$vid 
)

Definition at line 102 of file import_file.php.

+ Here is the call graph for this function:

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$dbaccessdatabase specification
array$datadata information conform to Doc::GetImportAttributes()
int$diriddefault folder id to add new document
bool$analyzetrue is want just analyze import file (not really import)
string$ldirpath where to search imported files
string$policyadd|update|keep policy use if similar document
array$tkeyattribute key to search similar documents
array$prevaluesdefault values for new documents
array$torderarray 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)
Parameters
array$orderdata
Returns
array

Definition at line 97 of file import_file.php.

ods2csv (   $odsfile)

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.

+ Here is the call graph for this function:

seemsODS (   $filename)

Definition at line 132 of file import_file.php.

Variable Documentation

const ALTSEPCHAR ' --- '

Definition at line 25 of file import_file.php.

const SEPCHAR ';'

Definition at line 26 of file import_file.php.

← centre documentaire © anakeen