14 include_once
"FDL/Class.Doc.php";
27 header(
'Content-type: text/xml; charset=utf-8');
31 $action->lay->set(
"CODE",
"OK");
32 $action->lay->set(
"warning",
"");
36 if (!
$doc->isAffected()) {
37 $err = sprintf(_(
"cannot see unknow reference %s") ,
$docid);
41 $action->lay->set(
"docid",
$doc->id);
42 $files =
$doc->GetFilesProperties();
46 $action->lay->set(
"CODE",
"KO");
48 $action->lay->set(
"warning",
$err);
51 foreach ($files as $k => $v) {
52 if (($v[
"teng_state"] == \Dcp\TransformationEngine\Client::status_done) || ($v[
"teng_state"] < 0)) {
53 $files[$k][
"icon"] = sprintf(
"resizeimg.php?img=Images/%s&size=20", htmlspecialchars(
getIconMimeFile($v[
"mime_s"]) , ENT_QUOTES));
55 $files[$k][
"icon"] =
"";
57 $files[$k][
"name"] = str_replace(
'&',
'&', $files[$k][
"name"]);
60 $action->lay->setBlockData(
"FILES", $files);
61 $action->lay->set(
"count", count($files));
62 $action->lay->set(
"docid",
$doc->id);
getIconMimeFile($sysmime)
Verify arguments for action function.
new_Doc($dbaccess, $id= '', $latest=false)
if($file) if($subject==""&&$file) if($subject=="") $err
verifycomputedfiles(Action &$action)