Request->contains('id') ? intval($this->Request['id']) : 0; $drive = $this->Request->contains('drive') ? intval($this->Request['drive']) : 0; $storage = $this->getModule('storage')->getStorageById($storageid); if (is_object($storage)) { $result = $this->getModule('bconsole')->bconsoleCommand( $this->director, array('release', 'storage="' . $storage->name . '"', 'drive="' . $drive . '"') ); $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; } } } ?>