Platform  3.1
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)
 
 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
 
 $sinitid
 
 $cinitid
 
 $title
 
 $type
 
 $id_fields
 
 $dbtable = "docrel"
 
 $ctitle
 
 $cicon
 
 $stitle
 
 $sicon
 
 $doctype
 
 $sqlcreate
 
- 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 19 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 166 of file Class.DocRel.php.

+ Here is the call graph for this function:

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

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

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

Definition at line 77 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 122 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 108 of file Class.DocRel.php.

+ Here is the call graph for this function:

Field Documentation

$cicon

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

$cinitid

identifier of the cible document int

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

$ctitle

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

$dbtable = "docrel"

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

$doctype

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

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

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

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

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

$sicon

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

$sinitid

identifier of the source document int

Definition at line 35 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 63 of file Class.DocRel.php.

$stitle

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

$title

title of the cible document int

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

$type

relation kind int

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


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