Represents a course in the Moodle.

Hierarchy

  • Course

Constructors

Properties

Methods

Constructors

Properties

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

Type declaration

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

      • input: RequestInfo | URL
      • Optional init: RequestInit

      Returns Promise<Response>

Methods

  • Retrieves all activities in the course, grouped by section name and activity type.

    Returns Promise<Record<string, Partial<{
        assign: Activity[];
        choice: Activity[];
        folder: Activity[];
        forum: Activity[];
        quiz: Activity[];
        resource: ResourceActivity[];
        url: UrlActivity[];
    }>>>

    Each section name is a key in the returned object. Each section name maps to an object with activity types as keys. Each activity type maps to an array of activities.

Generated using TypeDoc