17 include_once (
"FDL/Class.Doc.php");
18 include_once (
"FDL/modcard.php");
35 if (
$docid == 0) $action->
exitError(_(
"the document is not referenced: cannot apply state modification"));
48 $wdoc->disableEditControl();
50 $wdoc->enableEditControl();
52 $err = $wdoc->ChangeState($state,
$comment,
$force,
true,
true,
true,
true,
true,
true, $msg);
53 if (
$err !=
"") $action->AddWarningMsg(
$err);
54 if ($msg !=
"") $action->AddWarningMsg($msg);
55 else $action->
info(sprintf(
"Change state %s [%d] : %s",
$doc->title,
$doc->id, $state));
63 $action->AddLogMsg(sprintf(_(
"the document %s is not related to a workflow") ,
$doc->title));
66 redirect($action, $action->
getArgument(
"redirect_app",
"FDL") , $action->
getArgument(
"redirect_act",
"FDL_CARD&refreshfld=Y&id=" .
$doc->id) , $action->GetParam(
"CORE_STANDURL"));
modstate(Action &$action)
setPostVars(Doc &$doc, &$info=array())
exitError($texterr, $exit=true, $code="")
new_Doc($dbaccess, $id= '', $latest=false)
static getArgument($k, $def= '')
if($file) if($subject==""&&$file) if($subject=="") $err