Request->contains('id') ? intval($this->Request['id']) : 0; $fileset = $this->getModule('fileset')->getFileSetById($filesetid); $result = $this->getModule('bconsole')->bconsoleCommand($this->director, array('.fileset')); if ($result->exitcode === 0) { if(!is_null($fileset) && in_array($fileset->fileset, $result->output)) { $this->output = $fileset; $this->error = FileSetError::ERROR_NO_ERRORS; } else { $this->output = FileSetError::MSG_ERROR_FILESET_DOES_NOT_EXISTS; $this->error = FileSetError::ERROR_FILESET_DOES_NOT_EXISTS; } } else { $this->output = $result->output; $this->error = $result->exitcode; } } } ?>