Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SiteData

deprecated

Use LocalMain.Services.SiteDataService instead

Hierarchy

  • SiteData

Index

Methods

Static addSite

  • addSite(siteID: Site["id"], site: SiteJSON): void

Static deleteSite

  • deleteSite(siteID: Site["id"]): void
  • Parameters

    • siteID: Site["id"]

    Returns void

Static getSite

  • getSite(siteID: Site["id"]): Site | null

Static getSiteByProperty

  • getSiteByProperty(property: string, value: any): Site | null
  • Parameters

    • property: string
    • value: any

    Returns Site | null

Static getSites

  • getSites(): Local.Sites

Static getWorkspaceSites

  • getWorkspaceSites(workspace?: string): Local.Sites
  • Parameters

    • Optional workspace: string

    Returns Local.Sites

Static reformatSites

  • reformatSites(): void

Static updateSite

  • updateSite(siteID: Site["id"], site: Partial<SiteJSON>): void

Generated using TypeDoc