API Docs for: 0.8.0
Show:

PluginRepository Class

Empty constructor because this object uses static methods.

Constructor

PluginRepository

()

Methods

loadIncludedPluginsOwnedByThisSite

(
  • pluginIDs
  • site
  • cb
)
static

Load all plugin objects included in pluginIDs on a site level.

Parameters:

  • pluginIDs Array
    • array of plugin unique ids
  • site String
    • site unique id
  • cb Function
    • callback function

loadPluginAvailableToThisSite

(
  • pluginID
  • site
  • cb
)
static

Loads the plugin object on the site level first. If blank, attempts to load plugin object from the global level.

Parameters:

  • pluginID String
    • plugin unique id
  • site String
    • site unqiue id
  • cb Function
    • the callback function

loadPluginOwnedByThisSite

(
  • pluginID
  • site
  • cb
)
static

Loads the plugin object on the site level from the database.

Parameters:

  • pluginID String
    • plugin unique id
  • site String
    • site unique id
  • cb Function
    • the callback function

loadPluginsAcrossAllSites

(
  • cb
)
static

Load the entire plugin collection on both site and global levels.

Parameters:

  • cb Function
    • the callback function

loadPluginsNotIncludedOwnedByThisSite

(
  • pluginIDs
  • site
  • cb
)
static

Loads plugin objects of plugin IDs that are not include in pluginIDs on the site level.

Parameters:

  • pluginIDs Array
    • array of plugin unique ids to exclude
  • site String
    • site unique id
  • cb Function
    • callback function

loadPluginsWithThemesAvailableToThisSite

(
  • site
  • cb
)
static

Retrieves the plugins that have themes associated with them from both site and global level.

Parameters:

  • site String
    • site unique id
  • cb Function
    • the callback function

loadPluginsWithThemesOwnedByThisSite

(
  • site
  • cb
)
static

Retrieves the plugins that have themes associated with them from site level.

Parameters:

  • site String
    • site unique id
  • cb Function
    • the callback function

Properties

GLOBAL_SITE

String private static

PLUGIN_COLL

String private static

SITE_FIELD

String private static