Platform  3.1
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)
 
 PreInsert ()
 
 fStat (&$fc, &$fv)
 
 ListFiles (&$list)
 
 Stats (&$s)
 
 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="")
 
 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)
 
 Affect ($array)
 
 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 ()
 
 savePoint ($point)
 
 rollbackPoint ($point)
 
 commitPoint ($point)
 

Data Fields

 $fields
 
 $id_fields
 
 $dbtable = "vaultdiskstorage"
 
 $seq = "seq_id_vaultdiskstorage"
 
 $sqlcreate
 
 $storage = 1
 
- Data Fields inherited from DbObj
 $dbid = - 1
 
 $dbaccess = ''
 
 $fields
 
 $dbtable = ''
 
 $criterias = array()
 
 $sup_fields = array()
 
 $sup_where = array()
 
 $sup_tables = array()
 
 $fulltextfields = array()
 
 $order_by = ""
 
 $isset = false
 
 $msg_err = ''
 
 $err_code = ''
 
 $res = null
 
 $debug = false
 

Additional Inherited Members

- Static Public Attributes inherited from DbObj
static $savepoint = array()
 

Detailed Description

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

Constructor & Destructor Documentation

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

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

+ Here is the call graph for this function:

Member Function Documentation

Destroy (   $id)

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

+ Here is the call graph for this function:

fStat ( $fc,
$fv 
)

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

GetEngineObject (   $te_name,
$ngf 
)

Get the VaultDiskStorage transforming object corresponding to the current object

Parameters
VaultDiskStorage&$ngfreturned object
Returns
string error message (empty if OK)

Definition at line 193 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 272 of file Class.VaultDiskStorage.php.

+ Here is the call graph for this function:

ListFiles ( $list)

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

PreInsert ( )

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

+ Here is the call graph for this function:

resetTEFiles ( )

reset all files product by transform engine

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

+ Here is the call graph for this function:

Save (   $infile,
  $public_access,
  $idf 
)

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

+ Here is the call graph for this function:

seems_utf8 (   $Str)

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

Show (   $id_file,
$f_infos,
  $teng_lname = "" 
)

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

+ Here is the call graph for this function:

Stats ( $s)

Definition at line 116 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&$idnew file identificator
string$fsnamename of the VAULT to store (can be empty=>store in one of available VAULT)
Returns
string error message (empty if OK)

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

+ Here is the call graph for this function:

Field Documentation

$dbtable = "vaultdiskstorage"

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

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

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

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

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

$seq = "seq_id_vaultdiskstorage"

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

$sqlcreate
Initial value:
= "create table vaultdiskstorage (
id_file int not null, primary key (id_file),
id_fs int,
id_dir int,
public_access bool,
size int,
name varchar(2048),
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 int DEFAULT -1,
teng_comment text DEFAULT ''
);
create sequence seq_id_vaultdiskstorage start 10;
CREATE INDEX vault_teng on vaultdiskstorage (teng_state);"

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

$storage = 1

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


The documentation for this class was generated from the following file:
← centre documentaire © anakeen - published under CC License - Dynacase