Request->contains('jobid') ? intval($this->Request['jobid']) : 0; $pathid = $this->Request->contains('pathid') ? intval($this->Request['pathid']) : 0; $filenameid = $this->Request->contains('filenameid') ? intval($this->Request['filenameid']) : 0; $client = null; if ($this->Request->contains('client') && $this->getModule('misc')->isValidName($this->Request['client'])) { $client = $this->Request['client']; } if (is_null($client)) { $this->output = BVFSError::MSG_ERROR_INVALID_CLIENT; $this->error = BVFSError::ERROR_INVALID_CLIENT; return; } $cmd = array( '.bvfs_versions', 'client="' . $client . '"', 'jobid="' . $jobid . '"', 'pathid="' . $pathid . '"', 'fnid="' . $filenameid . '"' ); $result = $this->getModule('bconsole')->bconsoleCommand($this->director, $cmd); $this->output = $result->output; $this->error = $result->exitcode; } } ?>