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

Public Member Functions

 __construct ($dbaccess, $id_dir= '', $def= '')
 
 nextdir ($d, $max=VAULT_MAXDIRBYDIR)
 
 complete ()
 
 SetFreeDir ($fs)
 
 closeDir ()
 
 PreInsert ()
 
 Exists ($path, $id_fs)
 
 DelEntry ()
 
- 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
 
 $id_dir
 
 $id_fs
 
 $l_path
 
 $dbtable_tmpl = "vaultdiskdir%s"
 
 $order_by = ""
 
 $seq_tmpl = "seq_id_vaultdiskdir%s"
 
 $sqlcreate_tmpl
 
create sequence seq_id_vaultdiskdir:specific: start 10
 
CREATE INDEX vault_isfull:specific: on vaultdiskdir:specific: (isfull)
 
 SQL
 
 $specific
 
 $seq
 
 $isfull
 
 $size
 
- 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 Member Functions

 createDirectory ($fs)
 
- Protected Member Functions inherited from DbObj
 tryCreate ()
 

Protected Attributes

 $dirsToClose = []
 

Additional Inherited Members

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

Detailed Description

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

Constructor & Destructor Documentation

__construct (   $dbaccess,
  $id_dir = '',
  $def = '' 
)

Definition at line 60 of file Class.VaultDiskDir.php.

Member Function Documentation

closeDir ( )

Definition at line 159 of file Class.VaultDiskDir.php.

+ Here is the call graph for this function:

complete ( )

Definition at line 108 of file Class.VaultDiskDir.php.

createDirectory (   $fs)
protected

Definition at line 179 of file Class.VaultDiskDir.php.

+ Here is the call graph for this function:

DelEntry ( )

Definition at line 235 of file Class.VaultDiskDir.php.

Exists (   $path,
  $id_fs 
)

Definition at line 223 of file Class.VaultDiskDir.php.

nextdir (   $d,
  $max = VAULT_MAXDIRBYDIR 
)

return name of next directory 1/1 => 1/2 1/10 => 2/1 1/2 = 1/3

Parameters
string$dpath to file
int$max
Returns
string

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

PreInsert ( )

Definition at line 213 of file Class.VaultDiskDir.php.

+ Here is the call graph for this function:

SetFreeDir (   $fs)

Definition at line 113 of file Class.VaultDiskDir.php.

+ Here is the call graph for this function:

Field Documentation

$dbtable_tmpl = "vaultdiskdir%s"

Definition at line 38 of file Class.VaultDiskDir.php.

$dirsToClose = []
protected

Definition at line 58 of file Class.VaultDiskDir.php.

$fields
Initial value:
= array(
"id_dir",
"id_fs",
"isfull",
"size",
"l_path"
)

Definition at line 24 of file Class.VaultDiskDir.php.

$id_dir

Definition at line 34 of file Class.VaultDiskDir.php.

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

Definition at line 31 of file Class.VaultDiskDir.php.

$id_fs

Definition at line 35 of file Class.VaultDiskDir.php.

$isfull

Definition at line 56 of file Class.VaultDiskDir.php.

$l_path

Definition at line 36 of file Class.VaultDiskDir.php.

$order_by = ""

Definition at line 39 of file Class.VaultDiskDir.php.

$seq

Definition at line 55 of file Class.VaultDiskDir.php.

$seq_tmpl = "seq_id_vaultdiskdir%s"

Definition at line 40 of file Class.VaultDiskDir.php.

$size

Definition at line 57 of file Class.VaultDiskDir.php.

$specific

Definition at line 54 of file Class.VaultDiskDir.php.

$sqlcreate_tmpl
Initial value:
= <<<'SQL'
create table vaultdiskdir:specific: ( id_dir int not null,
primary key (id_dir),
id_fs int,
isfull bool,
size bigint,
l_path varchar(2048)
)

Definition at line 41 of file Class.VaultDiskDir.php.

create sequence seq_id_vaultdiskdir

Definition at line 50 of file Class.VaultDiskDir.php.

SQL

Definition at line 52 of file Class.VaultDiskDir.php.

CREATE INDEX vault_isfull

Definition at line 51 of file Class.VaultDiskDir.php.


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