Пример #1
0
 protected function updatedCaptureThumb(BatchJob $dbBatchJob, kCaptureThumbJobData $data, BatchJob $twinJob = null)
 {
     switch ($dbBatchJob->getStatus()) {
         case BatchJob::BATCHJOB_STATUS_FINISHED:
             return kFlowHelper::handleCaptureThumbFinished($dbBatchJob, $data, $twinJob);
         case BatchJob::BATCHJOB_STATUS_FAILED:
         case BatchJob::BATCHJOB_STATUS_FATAL:
             return kFlowHelper::handleCaptureThumbFailed($dbBatchJob, $data, $twinJob);
         default:
             return $dbBatchJob;
     }
 }