17 include_once (
"FDL/Class.Dir.php");
18 include_once (
"FDL/Class.DocLog.php");
29 if (
$d->isAffected()) {
30 $action->
exitError(sprintf(_(
"document %s [%d] is not destroyed") ,
$d->getTitle() ,
$d->id));
35 $l =
$q->Query(0, 1,
"TABLE");
39 $initid = $l[0][
"initid"];
42 $q->AddQuery(
"initid=" . $initid);
43 $q->order_by =
'date desc';
45 $l =
$q->Query(0, $limit,
"TABLE");
46 $action->lay->eSetBlockData(
"HISTO", $l);
48 $q->AddQuery(
"initid=" . $initid);
50 $q->order_by =
'date desc';
51 $l =
$q->Query(0, $limit,
"TABLE");
54 $action->lay->eSetBlockData(
"LOG", $l);
59 $action->lay->eSet(
"title",
$title);
60 $action->lay->eSet(
"trace", sprintf(_(
"Last traces of %s document : %s") ,
$docid,
$title));
viewdestroydoc(Action &$action)
exitError($texterr, $exit=true, $code="")
static getArgument($k, $def= '')