API Docs for: 1.3.12
Show:

MoodleConfig Class

Object that holds the Moodle Adapter configuration values returned from the server and provides methods for saving new config values

Item Index

Methods

Methods

get

(
  • serverUrl
  • success
  • failure
)
static

Retrieves the Moodle adapter configuration values from the server

Parameters:

  • serverUrl String

    URL of server to save configuration values to

  • success Callback1

    Callback triggered on successfully retrieving config values to server

  • failure Callback1

    Callback triggered if an error occurs while getting the config values

  • get

    (
    • serverUrl
    • success
    • failure
    )
    static

    Retrieves the Moodle adapter Encryption Key from the server to share frameworks with

    Parameters:

    • serverUrl String

      URL of server to save configuration values to

    • success Callback1

      Callback triggered on successfully retrieving config values to server

    • failure Callback1

      Callback triggered if an error occurs while getting the config values

    save

    (
    • serverUrl
    • success
    • failure
    )

    Saves this config Objects configuration values to the server specified

    Parameters:

    • serverUrl String

      URL of server to save configuration values to

    • success Callback1

      Callback triggered on successfully saving config values to server

    • failure Callback1

      Callback triggered if an error occurs while saving the config values