17 include_once (
'Class.DbObj.php');
18 include_once (
'Class.QueryDb.php');
19 include_once (
'Class.Log.php');
39 create table docvaultindex ( docid int not null,
40 vaultid bigint not null
42 create index idx_docvid on docvaultindex(vaultid);
43 create unique index idx_docvaultindex on docvaultindex (docid, vaultid);";
53 $query->basic_elem->sup_where = array(
68 $query->AddQuery(
"vaultid = $vid");
69 $t =
$query->Query(0, 1,
"TABLE");
70 if (is_array($t))
return $t[0][
"docid"];
80 if (!
$docid)
return array();
82 $query->AddQuery(
"docid = $docid");
83 $t =
$query->Query(0, 0,
"TABLE");
87 $tvid[] = $tv[
"vaultid"];
101 $err = $this->
exec_query(
"delete from " . $this->dbtable .
" where vaultid=" . $vid);
exec_query($sql, $lvl=0, $prepare=false)
if(($docid!==0)&&(!is_numeric($docid))) $query
if($file) if($subject==""&&$file) if($subject=="") $err