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 |
Definition at line 17 of file Class.DocRel.php.
copyRelations | ( | & | $tv, |
& | $doc, | ||
$reltype | |||
) |
copy in db document relations
array | &$tv | array of docid |
Doc | &$doc | document source |
Definition at line 167 of file Class.DocRel.php.
|
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
Doc | &$doc | document to initialize relations |
bool | $force | if force recomputing |
Definition at line 123 of file Class.DocRel.php.
resetRelations | ( | $type = "" , |
|
$sinitid = 0 |
|||
) |
Delete document relations
string | $type | a special type of relation . Empty means all relations |
int | $sinitid | document identifier of relation (initid) |
Definition at line 109 of file Class.DocRel.php.
$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 |
Definition at line 19 of file Class.DocRel.php.
$id_fields |
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 |
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.