Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
VaultManager Class Reference
+ Collaboration diagram for VaultManager:

Static Public Member Functions

static getFileInfo ($idfile, $teng_name="")
 
static storeFile ($filepath, $ftitle="", $public_access=false)
 
static storeTemporaryFile ($filepath, $ftitle="")
 
static setFilesPersitent (array $vids)
 
static destroyFile ($vid)
 
static destroyTmpFiles ($dayInterval=2)
 
static updateAccessDate ($idfile)
 

Static Protected Member Functions

static getVault ()
 

Static Protected Attributes

static $vault = null
 

Detailed Description

Definition at line 9 of file VaultManager.php.

Member Function Documentation

static destroyFile (   $vid)
static

Destroy file from vault The file is physicaly deleted

Parameters
int$vidvault file identifier
Exceptions
Exception

Definition at line 97 of file VaultManager.php.

static destroyTmpFiles (   $dayInterval = 2)
static

Delete vault temporary files where create date is less than interval

Parameters
int$dayIntervalnumber of day

Definition at line 110 of file VaultManager.php.

+ Here is the call graph for this function:

static getFileInfo (   $idfile,
  $teng_name = "" 
)
static

return various informations for a file stored in VAULT

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

Definition at line 30 of file VaultManager.php.

static getVault ( )
staticprotected
Returns

Definition at line 16 of file VaultManager.php.

static setFilesPersitent ( array  $vids)
static

Delete id_tmp propertty of identified files

Parameters
array$vidsvault identifiers list

Definition at line 80 of file VaultManager.php.

+ Here is the call graph for this function:

static storeFile (   $filepath,
  $ftitle = "",
  $public_access = false 
)
static

return various informations for a file stored in VAULT

Parameters
string$filepath
string$ftitle
bool$public_accessset to true to store uncontrolled files like icons
Returns
int
Exceptions
Exception

Definition at line 46 of file VaultManager.php.

static storeTemporaryFile (   $filepath,
  $ftitle = "" 
)
static

return various informations for a file stored in VAULT

Parameters
string$filepath
string$ftitle
Exceptions
Exception
Returns
int return vault identifier

Definition at line 63 of file VaultManager.php.

static updateAccessDate (   $idfile)
static

Set access date to now

Parameters
int$idfilevault file identifier

Definition at line 123 of file VaultManager.php.

Field Documentation

$vault = null
staticprotected

Definition at line 12 of file VaultManager.php.


The documentation for this class was generated from the following file:
← centre documentaire © anakeen