18 include_once (
"FDL/Class.DocUTag.php");
19 include_once (
"FDL/Lib.Dir.php");
24 $q->AddQuery(
"uid=$uid");
25 $q->AddQuery(
"tag='$tag'");
26 $q->order_by =
"date desc";
30 foreach ($lq as $k => $v) {
31 $lid[$v[
"initid"]] = $v[
"id"];
46 include_once (
"FDL/Class.SearchDoc.php");
49 $s->join(
"id = docutag(id)");
52 $s->addFilter(
"docutag.uid = %d", $userid);
53 $s->addFilter(
"docutag.tag = '%s'", $tag);
109 include_once (
"FDL/Class.DocRel.php");
112 $idocid =
$doc->initid;
114 $rdoc->sinitid = $idocid;
115 $trel = $rdoc->getIRelations();
117 foreach ($trel as $k => $v) {
118 $lid[$v[
"sinitid"]] = $v[
"sinitid"];
119 $tlay[$v[
"sinitid"] .
'_F'] = array(
120 "iconsrc" =>
$doc->getIcon($v[
"sicon"]) ,
121 "initid" => $v[
"sinitid"],
122 "title" => $v[
"stitle"],
124 "alabel" => _($v[
"type"]) ,
125 "type" => _(
"Referenced from")
133 $tfamids = array_keys($tfam);
136 foreach ($ltdoc as $k => $v) {
137 if (!in_array($v[
"fromid"], $tfamids)) unset($ltdoc[$k]);
149 include_once (
"FDL/Class.SearchDoc.php");
153 $s->join(
"id = dochisto(id)");
154 $s->addFilter(
"dochisto.uid = %d", $userid);
155 $s->addFilter(
"dochisto.code = 'DELETE'");
relateddoc($start="0", $slice="ALL", $userid=0, $docid=0, $famid=0)
getDocsFromIds($dbaccess, $ids, $userid=0)
mydeleteddoc($start="0", $slice="ALL", $userid=0)
getLatestDocsFromIds($dbaccess, $ids, $userid=0)
mytagdoc($start="0", $slice="ALL", $tag, $userid=0)
mytoviewdoc($start="0", $slice="ALL", $userid=0)
getFamIdFromName($dbaccess, $name)
new_Doc($dbaccess, $id= '', $latest=false)
myvieweddoc($start="0", $slice="ALL", $userid=0)
myaffecteddoc($start="0", $slice="ALL", $userid=0)
mytagdoc_($start, $slice, $tag, $userid=0)