コード例 #1
0
 /**
  * Helper function: Add job to history table in db
  *  
  * @param Job $job
  * @param JobResponse $response
  * @param String $start
  * @param String $finish
  */
 private function addJobToHistory(Job $job, JobResponse $response, $start, $finish)
 {
     $history = new JobHistory();
     $history->setJobInfo($this->jobInfoToString($job, $response, $start, $finish));
     $history->setStartTime($start);
     $history->setFinishTime($finish);
     $history->setHttpCode($response->http_code());
     $history->setMessage($response->message());
     $dao = new JobHistoryDao();
     $dao->create($history);
 }