Request['id']); $job = $this->getModule('job')->getJobById($jobid); if(!is_null($job)) { $this->output = $job; $this->error = JobError::ERROR_NO_ERRORS; } else { $this->output = JobError::MSG_ERROR_JOB_DOES_NOT_EXISTS; $this->error = JobError::ERROR_JOB_DOES_NOT_EXISTS; } } public function remove($id) { $jobid = intval($id); $job = $this->getModule('job')->getJobById($jobid); if(!is_null($job)) { $delete = $this->getModule('bconsole')->bconsoleCommand($this->director, array('delete', 'jobid="' . $job->jobid . '"')); $this->output = $delete->output; $this->error = (integer)$delete->exitcode; } else { $this->output = JobError::MSG_ERROR_JOB_DOES_NOT_EXISTS; $this->error = JobError::ERROR_JOB_DOES_NOT_EXISTS; } } } ?>