protected function copyJobToDescriptor($job, $jobDescriptor)
    {
        $data = $job->getJobData();

        $jobDescriptor->TotalSteps = $data->totalSteps;
        $jobDescriptor->StepsProcessed = $data->currentStep;
        if ($data->isComplete) {
            $jobDescriptor->JobStatus = QueuedJob::STATUS_COMPLETE;
            $jobDescriptor->JobFinished = DBDatetime::now()->Rfc2822();
        }

        $jobDescriptor->SavedJobData = serialize($data->jobData);
        $jobDescriptor->SavedJobMessages = serialize($data->messages);
    }
protected function copyJobToDescriptor($job, $jobDescriptor)
    {
        $data = $job->getJobData();

        $jobDescriptor->TotalSteps = $data->totalSteps;
        $jobDescriptor->StepsProcessed = $data->currentStep;
        if ($data->isComplete) {
            $jobDescriptor->JobStatus = QueuedJob::STATUS_COMPLETE;
            $jobDescriptor->JobFinished = DBDatetime::now()->Rfc2822();
        }

        $jobDescriptor->SavedJobData = serialize($data->jobData);
        $jobDescriptor->SavedJobMessages = serialize($data->messages);
    }
protected function copyJobToDescriptor ( $ job , $ jobDescriptor ) { $ data = $ job -> getJobData ( ) ; $ jobDescriptor -> TotalSteps = $ data -> totalSteps ; $ jobDescriptor -> StepsProcessed = $ data -> currentStep ; if ( $ data -> isComplete ) { $ jobDescriptor -> JobStatus = QueuedJob :: STATUS_COMPLETE ; $ jobDescriptor -> JobFinished = DBDatetime :: now ( ) -> Rfc2822 ( ) ; } $ jobDescriptor -> SavedJobData = serialize ( $ data -> jobData ) ; $ jobDescriptor -> SavedJobMessages = serialize ( $ data -> messages ) ; }
Copies data from a job into a descriptor for persisting

@param QueuedJob $job
@param QueuedJobDescriptor $jobDescriptor
Copies data from a job into a descriptor for persisting