Request['id']; $path = $this->Request['path']; $limit = intval($this->Request['limit']); $offset = intval($this->Request['offset']); $jobids = explode(',', $ids); $isValid = true; for($i = 0; $i < count($jobids); $i++) { $job = $this->getModule('job')->getJobById($jobids[$i]); if(is_null($job)) { $isValid = false; break; } } if($isValid === true) { $cmd = array('.bvfs_lsfiles', 'jobid="' . $ids . '"', 'path="' . $path . '"'); if($offset > 0) { array_push($cmd, 'offset="' . $offset . '"'); } if($limit > 0) { array_push($cmd, 'limit="' . $limit . '"'); } $result = $this->getModule('bconsole')->bconsoleCommand($this->director, $cmd, $this->user); $this->output = $result->output; $this->error = (integer)$result->exitcode; } else { $this->output = BVFSError::MSG_ERROR_JOB_DOES_NOT_EXISTS; $this->error = BVFSError::ERROR_JOB_DOES_NOT_EXISTS; } } } ?>