22 $s = new \SearchDoc($this->dbaccess);
25 $s->setObjectReturn();
29 while (
$doc =
$s->getNextDoc()) {
30 $doc->disableEditControl();
32 $doc->enableEditControl();
55 include_once (
"FDL/Class.SearchDoc.php");
57 $s = new \SearchDoc($this->dbaccess);
58 $s->addFilter(
"archiveid=%d", $this->
id);
60 $s->setObjectReturn();
64 while (
$doc =
$s->getNextDoc()) {
65 $doc->disableEditControl();
67 $doc->enableEditControl();
87 include_once (
"FDL/Class.SearchDoc.php");
89 $s = new \SearchDoc($this->dbaccess);
90 $s->addFilter(
"archiveid=%d", $this->
id);
92 $s->setObjectReturn();
97 while (
$doc =
$s->getNextDoc()) {
98 if (
$doc->doctype !=
'C') {
99 $t.= sprintf(
'<li><a href="?app=FDL&action=VIEWDESTROYDOC&id=%d">%s</a></li> ',
$doc->id,
$doc->title);
100 $doc->disableEditControl();
101 $doc->addHistoryEntry(sprintf(_(
"destroyed by archive purge from %s") , $this->
getTitle()));
103 $doc->enableEditControl();
130 $err = parent::postStore();
141 return self::postStore();
146 return _(
"archieve status must be open to modify content");
153 return _(
"archieve status must be open to modify content");
165 sprintf(
"archiveid=%d", $this->
id)
178 $prf = new_doc($this->dbaccess, $prfid);
179 if (!$prf->isAlive()) $prfid = 0;
181 $prf->setValue(
"ba_title", sprintf(_(
"Profil for document's archive %s") , $this->
getTitle()));
187 $prf =
createDoc($this->dbaccess,
"PDIR",
false);
188 $prf->setValue(
"ba_title", sprintf(_(
"Profil for document's archive %s") , $this->
getTitle()));
preRemoveDocument($docid, $multiple=false)
static getDate($daydelta=0, $dayhour="", $daymin="", $getlocale=false)
canEdit($verifyDomain=true)
modify($nopost=false, $sfields="", $nopre=false)
setValue($attrid, $value, $index=-1, &$kvalue=null)
createDoc($dbaccess, $fromid, $control=true, $defaultvalues=true, $temporary=false)
getTitle($id="-1", $def="", $latest=false)
deprecatedFunction($msg= '')
setMaxExecutionTimeTo($limit)
preInsertDocument($docid, $multiple=false)
if($file) if($subject==""&&$file) if($subject=="") $err
addHistoryEntry($comment= '', $level=DocHisto::INFO, $code= '', $uid= '')
getRawValue($idAttr, $def="")