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

Public Member Functions

 __construct ($dbaccess= '', $id= '', $res= '', $dbid=0)
 
 Complete ()
 
 PreInsert ()
 
 getNewVaultId ()
 
 ListFiles (&$list)
 
 seems_utf8 ($Str)
 
 Store ($infile, $public_access, &$idf, $fsname="", $te_lname="", $te_id_file=0)
 
 GetEngineObject ($te_name, &$ngf)
 
 show ($id_file, &$f_infos, $teng_lname="")
 
 updateAccessDate ($id_file)
 
 getPath ()
 
 Destroy ($id)
 
 save ($infile, $public_access, $idf)
 
 resetTEFiles ()
 
- Public Member Functions inherited from DbObj
 __construct ($dbaccess= '', $id= '', $res= '', $dbid=0)
 
 Select ($id)
 
 getValues ()
 
 affectColumn ($fields, $reset=true)
 
 affect ($array, $more=false, $reset=true)
 
 isAffected ()
 
 Complete ()
 
 preInsert ()
 
 postInsert ()
 
 preUpdate ()
 
 postUpdate ()
 
 preDelete ()
 
 postDelete ()
 
 preSelect ($id)
 
 postSelect ($id)
 
 Add ($nopost=false, $nopre=false)
 
 modify ($nopost=false, $sfields="", $nopre=false)
 
 delete ($nopost=false)
 
 Adds (&$tcopy, $nopost=false)
 
 lw ($prop)
 
 CloseConnect ()
 
 Create ($nopost=false)
 
 postInit ()
 
 init_dbid ()
 
 exec_query ($sql, $lvl=0, $prepare=false)
 
 numrows ()
 
 fetch_array ($c, $type=PGSQL_ASSOC)
 
 update ()
 
 setError ($moreerr= '')
 
 autoUpdate ()
 
 savePoint ($point)
 
 lockPoint ($exclusiveLock, $exclusiveLockPrefix= '')
 
 setMasterLock ($useLock)
 
 rollbackPoint ($point)
 
 commitPoint ($point)
 

Data Fields

 $fields
 
 $id_fields
 
 $dbtable = "vaultdiskstorage"
 
 $sqlcreate
 
 $id_file
 
 $id_fs
 
 $id_dir
 
 $name
 
 $id_tmp
 
 $size
 
 $public_access
 
 $mime_t
 
 $mime_s
 
 $cdate
 
 $mdate
 
 $adate
 
 $teng_state
 
 $teng_lname
 
 $teng_id_file
 
 $teng_comment
 
 $storage = 1
 
 $fs
 
- Data Fields inherited from DbObj
 $dbid = - 1
 
 $dbaccess = ''
 
 $fields
 
 $dbtable = ''
 
 $id_fields
 
 $criterias = array()
 
 $sup_fields = array()
 
 $sup_where = array()
 
 $sup_tables = array()
 
 $fulltextfields = array()
 
 $order_by = ""
 
 $isset = false
 
 $msg_err = ''
 
 $err_code = ''
 
 $res = ''
 
 $debug = false
 
 $sqlcreate
 
 $sqlinit
 
 $log
 

Protected Attributes

 $logger
 

Additional Inherited Members

- Static Public Attributes inherited from DbObj
static $savepoint = array()
 
static $lockpoint = array()
 
static $sqlStrict = null
 
- Protected Member Functions inherited from DbObj
 tryCreate ()
 

Detailed Description

Definition at line 21 of file Class.VaultDiskStorage.php.

Constructor & Destructor Documentation

__construct (   $dbaccess = '',
  $id = '',
  $res = '',
  $dbid = 0 
)

Definition at line 101 of file Class.VaultDiskStorage.php.

+ Here is the call graph for this function:

Member Function Documentation

Complete ( )

set fs object

Definition at line 110 of file Class.VaultDiskStorage.php.

Destroy (   $id)

Definition at line 383 of file Class.VaultDiskStorage.php.

GetEngineObject (   $te_name,
$ngf 
)

Get the VaultDiskStorage transforming object corresponding to the current object

Parameters
string$te_nametransformation engine name
VaultDiskStorage&$ngfreturned object
Returns
string error message (empty if OK)
Deprecated:
no usage
Exceptions
\Dcp\Db\Exception

Definition at line 282 of file Class.VaultDiskStorage.php.

+ Here is the call graph for this function:

getNewVaultId ( )

Get a new cryptographically random id for vault identifier

Throws an exception:

  • if no cryptographically random bytes could be obtained from openssl: this might occurs on broken or old system.
  • if architecture int size is not supported.
Returns
int The new id (bigint)
Exceptions
\Dcp\Exception

Definition at line 139 of file Class.VaultDiskStorage.php.

+ Here is the call graph for this function:

getPath ( )

return the complete path in file system

Returns
string the path

Definition at line 377 of file Class.VaultDiskStorage.php.

+ Here is the call graph for this function:

ListFiles ( $list)

Definition at line 202 of file Class.VaultDiskStorage.php.

PreInsert ( )

Definition at line 123 of file Class.VaultDiskStorage.php.

+ Here is the call graph for this function:

resetTEFiles ( )

reset all files product by transform engine

Definition at line 433 of file Class.VaultDiskStorage.php.

save (   $infile,
  $public_access,
  $idf 
)

Definition at line 396 of file Class.VaultDiskStorage.php.

+ Here is the call graph for this function:

seems_utf8 (   $Str)

Definition at line 211 of file Class.VaultDiskStorage.php.

show (   $id_file,
$f_infos,
  $teng_lname = "" 
)
Parameters
int$id_filevault file identifier
VaultFileInfo$f_infos
string$teng_lnameengine name
Returns
string

Definition at line 314 of file Class.VaultDiskStorage.php.

+ Here is the call graph for this function:

Store (   $infile,
  $public_access,
$idf,
  $fsname = "",
  $te_lname = "",
  $te_id_file = 0 
)

Add new file in VAULT

Parameters
string$infilecomplete server path of file to store
bool$public_accessset true if can be access without any permission
int&$idfnew file identifier
string$fsnamename of the VAULT to store (can be empty=>store in one of available VAULT)
string$te_lnametransformation engine name
int$te_id_filetransformation engine file result identifier
Returns
string error message (empty if OK)

Definition at line 225 of file Class.VaultDiskStorage.php.

+ Here is the call graph for this function:

updateAccessDate (   $id_file)

Definition at line 359 of file Class.VaultDiskStorage.php.

+ Here is the call graph for this function:

Field Documentation

$adate

Definition at line 86 of file Class.VaultDiskStorage.php.

$cdate

Definition at line 84 of file Class.VaultDiskStorage.php.

$dbtable = "vaultdiskstorage"

Definition at line 46 of file Class.VaultDiskStorage.php.

$fields
Initial value:
= array(
"id_file",
"id_fs",
"id_dir",
"public_access",
"size",
"name",
"id_tmp",
"mime_t",
"mime_s",
"cdate",
"mdate",
"adate",
"teng_state",
"teng_lname",
"teng_id_file",
"teng_comment",
)

Definition at line 23 of file Class.VaultDiskStorage.php.

$fs

Definition at line 99 of file Class.VaultDiskStorage.php.

$id_dir

Definition at line 73 of file Class.VaultDiskStorage.php.

$id_fields
Initial value:
= array(
"id_file"
)

Definition at line 43 of file Class.VaultDiskStorage.php.

$id_file

Definition at line 71 of file Class.VaultDiskStorage.php.

$id_fs

Definition at line 72 of file Class.VaultDiskStorage.php.

$id_tmp

Definition at line 79 of file Class.VaultDiskStorage.php.

$logger
protected

Definition at line 94 of file Class.VaultDiskStorage.php.

$mdate

Definition at line 85 of file Class.VaultDiskStorage.php.

$mime_s

Definition at line 83 of file Class.VaultDiskStorage.php.

$mime_t

Definition at line 82 of file Class.VaultDiskStorage.php.

$name

Definition at line 74 of file Class.VaultDiskStorage.php.

$public_access

Definition at line 81 of file Class.VaultDiskStorage.php.

$size

Definition at line 80 of file Class.VaultDiskStorage.php.

$sqlcreate
Initial value:
= "create table vaultdiskstorage (
id_file bigint not null, primary key (id_file),
id_fs int,
id_dir int,
public_access bool,
size int,
name text,
id_tmp text,
mime_t text DEFAULT '',
mime_s text DEFAULT '',
cdate timestamp DEFAULT null,
mdate timestamp DEFAULT null,
adate timestamp DEFAULT null,
teng_state int DEFAULT 0,
teng_lname text DEFAULT '',
teng_id_file bigint DEFAULT -1,
teng_comment text DEFAULT ''
);
CREATE INDEX vault_iddir on vaultdiskstorage (id_dir);
CREATE INDEX vault_teng on vaultdiskstorage (teng_state);
CREATE INDEX vault_tengid on vaultdiskstorage (teng_id_file);"

Definition at line 47 of file Class.VaultDiskStorage.php.

$storage = 1

Definition at line 95 of file Class.VaultDiskStorage.php.

$teng_comment

Definition at line 90 of file Class.VaultDiskStorage.php.

$teng_id_file

Definition at line 89 of file Class.VaultDiskStorage.php.

$teng_lname

Definition at line 88 of file Class.VaultDiskStorage.php.

$teng_state

Definition at line 87 of file Class.VaultDiskStorage.php.


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