Methods
Static addSite
- addSite(siteID: Site["id"], site: SiteJSON): void
Static deleteSite
- deleteSite(siteID: Site["id"]): void
Static getSite
- getSite(siteID: Site["id"]): Site | null
-
Parameters
Returns Site | null
Static getSiteByProperty
- getSiteByProperty(property: string, value: any): Site | null
-
Parameters
-
property: string
-
value: any
Returns Site | null
Static getWorkspaceSites
- getWorkspaceSites(workspace?: string): Local.Sites
-
Parameters
-
Optional workspace: string
Returns Local.Sites
Static updateSite
- updateSite(siteID: Site["id"], site: Partial<SiteJSON>): void
Use LocalMain.Services.SiteDataService instead