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

Go to the source code of this file.

Namespaces

 FDL
 

Functions

 getTarUploadDir (Action &$action)
 
 getTarExtractDir (Action &$action, $tar)
 
 import_tar (&$action, $ftar, $dirid=0, $famid=7)
 
 import_directory (&$action, $ldir, $dirid=0, $famid=7, $dfldid=2, $onlycsv=false, $analyze=false, $csvLinebreak= '\n')
 
 analyze_csv ($fdlcsv, $dbaccess, $dirid, &$famid, &$dfldid, $analyze, $csvLinebreak= '\n')
 
 WNGBdecode ($s)
 
 WNGBDirRename ($ldir)
 

Variables

const TARUPLOAD DEFAULT_PUBDIR . "/var/upload/"
 
const TAREXTRACT "/extract/"
 
const TARTARS "/tars/"
 

Function Documentation

analyze_csv (   $fdlcsv,
  $dbaccess,
  $dirid,
$famid,
$dfldid,
  $analyze,
  $csvLinebreak = '\n' 
)

Definition at line 223 of file import_tar.php.

+ Here is the call graph for this function:

getTarExtractDir ( Action $action,
  $tar 
)

Definition at line 34 of file import_tar.php.

+ Here is the call graph for this function:

getTarUploadDir ( Action $action)

Definition at line 24 of file import_tar.php.

+ Here is the call graph for this function:

import_directory ( $action,
  $ldir,
  $dirid = 0,
  $famid = 7,
  $dfldid = 2,
  $onlycsv = false,
  $analyze = false,
  $csvLinebreak = '\n' 
)

import a directory files

Parameters
action$actioncurrent action
string$ldirlocal directory path
int$diridfolder id to add new documents
int$famiddefault family for raw files
int$dfldid
bool$onlycsvif true only fdl.csv file is imported
bool$analyzedry-mode it true
string$csvLinebreakdefault line break sequence
Returns
array

Definition at line 64 of file import_tar.php.

+ Here is the call graph for this function:

import_tar ( $action,
  $ftar,
  $dirid = 0,
  $famid = 7 
)

import a directory files

Parameters
action$actioncurrent action
string$ftartar file

Definition at line 49 of file import_tar.php.

WNGBdecode (   $s)

decode characters wihich comes from windows zip

Parameters
$sstring to decode
Returns
string decoded string

Definition at line 323 of file import_tar.php.

WNGBDirRename (   $ldir)

rename file name which comes from windows zip

Parameters
string$ldirdirectory to decode
Returns
string empty string on success, non-empty string with error message on failure

Definition at line 356 of file import_tar.php.

+ Here is the call graph for this function:

Variable Documentation

const TAREXTRACT "/extract/"

Definition at line 21 of file import_tar.php.

const TARTARS "/tars/"

Definition at line 22 of file import_tar.php.

const TARUPLOAD DEFAULT_PUBDIR . "/var/upload/"

Definition at line 20 of file import_tar.php.

← centre documentaire © anakeen