17 include_once (
"FDL/Class.Dir.php");
28 $docid = GetHttpVars(
"id");
29 $latest = GetHttpVars(
"latest");
30 $saction = GetHttpVars(
"saction");
31 $sapp = GetHttpVars(
"sapp");
37 if (!
$doc->isAlive()) $action->
exitError(sprintf(_(
"batcexec aborted\ndocument [%s] not found") ,
$docid));
39 $l =
$doc->getContent();
42 if (!$de) $action->
exitError(sprintf(_(
"no privilege to create this kind (%d) of document") ,
"EXEC"));
44 $de->setValue(
"exec_idref",
$doc->id);
45 $de->setValue(
"exec_ref",
$doc->title);
46 $de->setValue(
"exec_application", $sapp);
47 $de->setValue(
"exec_action", $saction);
48 $de->setValue(
"exec_idvar", array(
51 $de->setValue(
"exec_valuevar", array(
58 redirect($action,
"FDL",
"FDL_METHOD&method=bgExecute&id=" . $de->id, $action->GetParam(
"CORE_STANDURL"));
exitError($texterr, $exit=true, $code="")
createDoc($dbaccess, $fromid, $control=true, $defaultvalues=true, $temporary=false)
new_Doc($dbaccess, $id= '', $latest=false)
if($file) if($subject==""&&$file) if($subject=="") $err
batchexec(Action &$action)