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

Go to the source code of this file.

Namespaces

 FDL
 

Functions

 initVaultAccess ()
 
 getOpenTeUrl ($context=array())
 
 vault_generate ($dbaccess, $engine, $vidin, $vidout, $isimage=false, $docid= '')
 
 vault_properties ($idfile, $teng_name="")
 
 vault_uniqname ($idfile, $teng_name="")
 
 vault_store ($filename, &$vid, $ftitle="")
 
 vault_get_content ($idfile)
 
 sendTextTransformation ($dbaccess, $docid, $attrid, $index, $vid)
 
 convertFile ($infile, $engine, $outfile, &$info)
 

Function Documentation

convertFile (   $infile,
  $engine,
  $outfile,
$info 
)

send request to convert and waiting

Parameters
string$infilepath to file to convert
string$engineengine name to use
string$outfilepath where to store new file
array&$infovarious informations for convertion process
Returns
string error message

Definition at line 219 of file Lib.Vault.php.

+ Here is the call graph for this function:

getOpenTeUrl (   $context = array())

get url with open id to use with open authentiication

Definition at line 34 of file Lib.Vault.php.

+ Here is the call graph for this function:

initVaultAccess ( )

Definition at line 21 of file Lib.Vault.php.

+ Here is the call graph for this function:

sendTextTransformation (   $dbaccess,
  $docid,
  $attrid,
  $index,
  $vid 
)

send request to have text conversion of file

Definition at line 180 of file Lib.Vault.php.

+ Here is the call graph for this function:

vault_generate (   $dbaccess,
  $engine,
  $vidin,
  $vidout,
  $isimage = false,
  $docid = '' 
)

Generate a conversion of a file The result is store in vault itself

Parameters
string$enginethe convert engine identifier (from VaultEngine Class)
int$vidinvault file identifier (original file)
int$vidoutvault identifier of new stored file
boolean$isimagetrue is it is a image (jpng, png, ...)
int$docidoriginal document where the file is inserted
Returns
string error message (empty if OK)

Definition at line 63 of file Lib.Vault.php.

+ Here is the call graph for this function:

vault_get_content (   $idfile)

return context of a file

Parameters
int$idfilevault file identifier
Returns
array|false

Definition at line 166 of file Lib.Vault.php.

+ Here is the call graph for this function:

vault_properties (   $idfile,
  $teng_name = "" 
)

return various informations for a file stored in VAULT

Parameters
int$idfilevault file identifier
string$teng_nametransformation engine name
Returns
vaultFileInfo

Definition at line 114 of file Lib.Vault.php.

+ Here is the call graph for this function:

vault_store (   $filename,
$vid,
  $ftitle = "" 
)

return various informations for a file stored in VAULT

Parameters
string$filename
int&$vidreturn vaul identifier
Returns
string error message

Definition at line 153 of file Lib.Vault.php.

+ Here is the call graph for this function:

vault_uniqname (   $idfile,
  $teng_name = "" 
)

return unique name with for a vault file

Parameters
int$idfilevault file identifier
string$teng_nametransformation engine name
Returns
string the unique name

Definition at line 127 of file Lib.Vault.php.

+ Here is the call graph for this function:

← centre documentaire © anakeen