Request->contains('id') ? intval($this->Request['id']) : 0; $storage = $this->getModule('storage')->getStorageById($storageid); $result = $this->getModule('bconsole')->bconsoleCommand($this->director, array('.storage')); if ($result->exitcode === 0) { if(!is_null($storage) && in_array($storage->name, $result->output)) { $this->output = $storage; $this->error = StorageError::ERROR_NO_ERRORS; } else { $this->output = StorageError::MSG_ERROR_STORAGE_DOES_NOT_EXISTS; $this->error = StorageError::ERROR_STORAGE_DOES_NOT_EXISTS; } } else { $this->output = $result->output; $this->error = $result->exitcode; } } } ?>