Platform  3.1
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

namespace  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 222 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 37 of file Lib.Vault.php.

+ Here is the call graph for this function:

initVaultAccess ( )

Definition at line 24 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 181 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 identificator (from VaultEngine Class)
int$vidinvault file identificator (original file)
int$vidoutvault identificator 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 66 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 identificator
Returns
array

Definition at line 167 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 identificator
string$teng_nametransformation engine name
Returns
array

Definition at line 115 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 identificator
Returns
string error message

Definition at line 154 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 identificator
string$teng_nametransformation engine name
Returns
string the unique name

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

+ Here is the call graph for this function:

← centre documentaire © anakeen - published under CC License - Dynacase