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