Ejemplo n.º 1
0
 static function ChangeStatus($RequestID, $StatusID, $ActDesc = "", $LogOnly = false, $pdo = null)
 {
     if (!$LogOnly) {
         $obj = new WAR_requests();
         $obj->RequestID = $RequestID;
         $obj->StatusID = $StatusID;
         if (!$obj->Edit($pdo)) {
             return false;
         }
     }
     return WFM_FlowRows::AddOuterFlow(FLOWID, $RequestID, $StatusID, $ActDesc = "", $pdo);
 }
Ejemplo n.º 2
0
 static function ChangeStatus($PlanID, $StepID, $ActDesc = "", $LogOnly = false, $pdo = null)
 {
     if (!$LogOnly) {
         $obj = new PLN_plans();
         $obj->PlanID = $PlanID;
         $obj->StepID = $StepID;
         if (!$obj->EditPlan($pdo)) {
             return false;
         }
     }
     return WFM_FlowRows::AddOuterFlow(FLOWID, $PlanID, $StepID, $ActDesc, $pdo);
 }