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

Public Member Functions

 getRelations ($reltype="", $doctype="", $limit=0)
 
 getIRelations ($reltype="", $doctype="", $limit=0)
 
 resetRelations ($type="", $sinitid=0)
 
 initRelations (&$doc, $force=false)
 
 copyRelations (&$tv, &$doc, $reltype)
 
- 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
 
 $sinitid
 
 $cinitid
 
 $title
 
 $type
 
 $id_fields
 
 $dbtable = "docrel"
 
 $ctitle
 
 $cicon
 
 $stitle
 
 $sicon
 
 $doctype
 
 $sqlcreate
 
- 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

 escapePgCopyChars ($str)
 
- Protected Member Functions inherited from DbObj
 tryCreate ()
 

Additional Inherited Members

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

Detailed Description

Definition at line 17 of file Class.DocRel.php.

Member Function Documentation

copyRelations ( $tv,
$doc,
  $reltype 
)

copy in db document relations

Parameters
array&$tvarray of docid
Doc&$docdocument source
Returns
void

Definition at line 167 of file Class.DocRel.php.

+ Here is the call graph for this function:

escapePgCopyChars (   $str)
protected

Definition at line 191 of file Class.DocRel.php.

getIRelations (   $reltype = "",
  $doctype = "",
  $limit = 0 
)

Definition at line 92 of file Class.DocRel.php.

getRelations (   $reltype = "",
  $doctype = "",
  $limit = 0 
)

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

initRelations ( $doc,
  $force = false 
)

Update document relations

Parameters
Doc&$docdocument to initialize relations
bool$forceif force recomputing
Returns
void

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

+ Here is the call graph for this function:

resetRelations (   $type = "",
  $sinitid = 0 
)

Delete document relations

Parameters
string$typea special type of relation . Empty means all relations
int$sinitiddocument identifier of relation (initid)
Returns
void

Definition at line 109 of file Class.DocRel.php.

+ Here is the call graph for this function:

Field Documentation

$cicon

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

$cinitid

identifier of the cible document int

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

$ctitle

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

$dbtable = "docrel"

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

$doctype

Definition at line 59 of file Class.DocRel.php.

$fields
Initial value:
= array(
"sinitid",
"cinitid",
"ctitle",
"cicon",
"stitle",
"sicon",
"type",
"doctype"
)

Definition at line 19 of file Class.DocRel.php.

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

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

$sicon

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

$sinitid

identifier of the source document int

Definition at line 33 of file Class.DocRel.php.

$sqlcreate
Initial value:
= "
create table docrel ( sinitid int not null,
cinitid int not null,
stitle text,
ctitle text,
sicon text,
cicon text,
type text,
doctype text );
create index i_docrelc on docrel(cinitid);
create index i_docrels on docrel(sinitid);
create unique index docrel_u on docrel(sinitid,cinitid,type);
"

Definition at line 61 of file Class.DocRel.php.

$stitle

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

$title

title of the cible document int

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

$type

relation kind int

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


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