Request->contains('id') ? intval($this->Request['id']) : 0; $error = false; $result = $this->getModule('bconsole')->bconsoleCommand($this->director, array('.jobs')); if ($result->exitcode === 0) { $allowed_jobs = $result->output; } else { $error = true; $this->output = $result->output; $this->error = $result->exitcode; } if ($error === false) { $jobs = $this->getModule('job')->getJobsForClient($clientid, $allowed_jobs); $this->output = $jobs; $this->error = JobError::ERROR_NO_ERRORS; } } } ?>