The MoodleExporter class provides methods for exporting data from a Moodle site. Use the init static method to create a new instance of the class.

Hierarchy

  • MoodleExporter

Constructors

  • Do not use this constructor directly. Use the init static method instead.

    Parameters

    • base: string
    • fetch: ((input, init?) => Promise<Response>)
        • (input, init?): Promise<Response>
        • Parameters

          • input: RequestInfo | URL
          • Optional init: RequestInit

          Returns Promise<Response>

    Returns MoodleExporter

Properties

_fetch_course_list_cached?: Promise<Course[]>

Internal cache for the course list. Can be purged with the purge method.

base: string
fetch: ((input, init?) => Promise<Response>)

Type declaration

    • (input, init?): Promise<Response>
    • Parameters

      • input: RequestInfo | URL
      • Optional init: RequestInit

      Returns Promise<Response>

Methods

Generated using TypeDoc