19 if (!method_exists($this,
"addfile"))
return '';
27 include_once (
"FDL/Lib.Dir.php");
29 $child =
getChildDir($this->dbaccess, 1, $this->initid,
false,
"TABLE");
30 if (
count($child) == 0) {
43 include_once (
"FDL/Lib.Dir.php");
48 $ddoc =
new_Doc($this->dbaccess, $ddocid);
49 if ($ddoc->isAffected()) {
50 $child =
getChildDir($this->dbaccess, $this->userid, $ddoc->initid,
false,
"TABLE");
52 foreach ($child as $k =>
$tdoc) {
54 $copy =
$doc->duplicate();
55 if (!is_object($copy))
$err.= $copy;
59 $err = sprintf(_(
"Error in portfolio : folder %s not exists") , $ddocid);
72 include_once (
"FDL/Lib.Dir.php");
77 foreach ($copytab as $k =>
$id) {
81 $copy =
$doc->duplicate();
82 if (!is_object($copy))
$err.= $copy;
92 if (
$doc->doctype ==
"S") {
93 $doc->setValue(
"SE_IDCFLD", $this->initid);
106 function getContent($controlview =
true, array
$filter = array() ,
$famid =
"", $insertguide =
false, $unused =
"")
111 foreach (
$tdoc as $k => $v) {
112 if (($v[
"doctype"] ==
"D") || ($v[
"doctype"] ==
"S")) {
117 $todoc = array_merge($todoc,
$dir->getContent($controlview,
$filter));
123 $todoc = array_merge(
$tdoc, $todoc);
125 foreach ($todoc as $k => $v) {
126 $tdoc[$v[
"id"]] = $v;
getTDoc($dbaccess, $id, $sqlfilters=array(), $result=array())
static rawValueToArray($v)
count($onlyprimary=false)
CreateDefaultTabsFromParameter()
getFamilyParameterValue($idp, $def="")
getContent($controlview=true, array $filter=array(), $famid="", $qtype="TABLE", $trash="")
getChildDir($dbaccess, $userid, $dirid, $notfldsearch=false, $restype="LIST")
revision(Action &$action)
new_Doc($dbaccess, $id= '', $latest=false)
insertDocument($docid, $mode="latest", $noprepost=false, $forcerestrict=false, $nocontrol=false)
if($file) if($subject==""&&$file) if($subject=="") $err
postInsertDocument($docid, $multiple=false)
getRawValue($idAttr, $def="")
getDocObject($dbaccess, $v, $k=0)