getModule('fileset')->getFileSets(); $result = $this->getModule('bconsole')->bconsoleCommand($this->director, array('.fileset')); if ($result->exitcode === 0) { if (is_array($filesets) && count($filesets) > 0) { $fs = array(); for ($i = 0; $i < count($filesets); $i++) { if(in_array($filesets[$i]->fileset, $result->output)) { $fs[] = $filesets[$i]; } } $this->output = $fs; $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; } } } ?>