コード例 #1
0
ファイル: Cases.php プロジェクト: nhenderson/processmaker
 /**
  * Pause Case
  *
  * @param string $cas_uid {@min 1}{@max 32}
  * @param string $unpaused_date {@from body}
  *
  * @author Brayan Pereyra (Cochalo) <*****@*****.**>
  * @copyright Colosa - Bolivia
  *
  * @url PUT /:cas_uid/pause
  */
 public function doPutPauseCase($cas_uid, $unpaused_date = null)
 {
     try {
         $userUid = $this->getUserId();
         $cases = new \ProcessMaker\BusinessModel\Cases();
         if ($unpaused_date == null) {
             $cases->putPauseCase($cas_uid, $userUid);
         } else {
             $cases->putPauseCase($cas_uid, $userUid, false, $unpaused_date);
         }
     } catch (\Exception $e) {
         throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()));
     }
 }