# WorkshopFileBase

- **İngilizce aslı:** https://wiki.facepunch.com/gmod/WorkshopFileBase
- **Çeviri tarihi:** 2025-09-08

> **DAHİLİ:** Bu dahili olarak kullanılır - kullanabiliyor olsanız da muhtemelen kullanmamalısınız.

Bu nesne, belirli ad alanının (namespace) verilerini almak veya kayıtları (saves) ve kopyaları (dupes) yayınlamak için dahili olarak kullanılan [WorkshopFileBase](https://gmod.tr/wiki/Global.WorkshopFileBase) tarafından oluşturulur.

Bu aynı zamanda Sunucuda da mevcuttur ancak çoğu fonksiyon hata verebilir. İstemci tarafında (clientside) kullanılması amaçlanmıştır.

> **NOT:** `HTML` alanını, [buradaki](https://github.com/Facepunch/garrysmod/blob/master/garrysmod/gamemodes/sandbox/gamemode/spawnmenu/creationmenu/content/contenttypes/dupes.lua#L12) gibi doğru şekilde ayarlanmış bir [DHTML](https://gmod.tr/wiki/DHTML) paneline ayarlamanız gerekir, aksi takdirde hatalarla karşılaşabilirsiniz.

## Metotlar

WorkshopFileBase:[Fetch](https://gmod.tr/wiki/WorkshopFileBase:Fetch)( [string](https://gmod.tr/wiki/string) type, [number](https://gmod.tr/wiki/number) offset, [number](https://gmod.tr/wiki/number) perpage, [table](https://gmod.tr/wiki/table) extratags, [string](https://gmod.tr/wiki/string) searchText, [number](https://gmod.tr/wiki/number) filter = nil, [string](https://gmod.tr/wiki/string) sort = nil )

Belirlenen ad alanı (namespace) ve tür için tüm abonelikleri getirir Eğer yerel (local) türü kullanmak istiyorsanız, :FetchLocal(offset, perpage) fonksiyonunu uygulamanız gerekir!

WorkshopFileBase:[FetchSubscribed](https://gmod.tr/wiki/WorkshopFileBase:FetchSubscribed)( [number](https://gmod.tr/wiki/number) offset, [number](https://gmod.tr/wiki/number) perpage, [table](https://gmod.tr/wiki/table) tags, [string](https://gmod.tr/wiki/string) searchText, [boolean](https://gmod.tr/wiki/boolean) isUGC = nil, [number](https://gmod.tr/wiki/number) filter = nil, [string](https://gmod.tr/wiki/string) sort = nil )

Belirlenen ad alanı için tüm abonelikleri getirir ve sonucu WorkshopFileBase:FillFileInfo'ya iletir.

WorkshopFileBase:[FillFileInfo](https://gmod.tr/wiki/WorkshopFileBase:FillFileInfo)( [table](https://gmod.tr/wiki/table) results, [boolean](https://gmod.tr/wiki/boolean) isUGC )

Belirlenen HTML panelini yeni getirilen sonuçlarla günceller

WorkshopFileBase:[Publish](https://gmod.tr/wiki/WorkshopFileBase:Publish)( [string](https://gmod.tr/wiki/string) filename, [string](https://gmod.tr/wiki/string) image )

Kopyayı (dupe) veya kaydı (save) yayınlamak için bir UGCPublishWindow oluşturur

WorkshopFileBase:[RetrieveUserName](https://gmod.tr/wiki/WorkshopFileBase:RetrieveUserName)( [string](https://gmod.tr/wiki/string) steamid, [function](https://gmod.tr/wiki/function) callback )

Verilen SteamID için kullanıcı adını alır.

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/WorkshopFileBase
