Hierarchy

  • ReturnsLessonsItem

Properties

activitylink: number

Id of the next activity to be linked once the lesson is completed

allowofflineattempts: boolean

Whether to allow the lesson to be attempted offline in the mobile app

available: number

Available from

bgcolor: string

Slideshow bgcolor

completionendreached: number

Require end reached for completion?

completiontimespent: number

Student must do this activity at least for

conditions: string

Conditions to enable the lesson

course: number

Foreign key reference to the course this lesson is part of.

coursemodule: number

Course module id.

custom: boolean

Custom scoring?

deadline: number

Available until

dependency: number

Dependent on (another lesson id)

displayleft: boolean

Display left pages menu?

displayleftif: number

Minimum grade to display menu

feedback: boolean

Display default feedback

grade: number

The total that the grade is scaled to be out of

height: number

Slideshow height

id: number

Standard Moodle primary key.

intro: string

Lesson introduction text.

introfiles

introformat?: null | number

intro format (1 = HTML, 0 = MOODLE, 2 = PLAIN, or 4 = MARKDOWN

lang: null | string

Forced activity language

maxanswers: number

Maximum answers per page

maxattempts: number

Maximum attempts

maxpages: number

Number of pages to show

mediaclose: number

Display a close button in the popup?

mediafile: string

Local file path or full external URL

mediafiles

mediaheight: number

Popup for media file height

mediawidth: number

Popup for media with

minquestions: number

Minimum number of questions

modattempts: boolean

Allow student review?

name: string

Lesson name.

nextpagedefault: number

Action for a correct answer

ongoing: boolean

Display ongoing score?

password: string

Password

practice: boolean

Practice lesson?

progressbar: boolean

Display progress bar?

retake: boolean

Re-takes allowed

review: boolean

Provide option to try a question again

slideshow: boolean

Display lesson as slideshow

timelimit: number

Time limit

timemodified: number

Last time settings were updated

usemaxgrade: number

How to calculate the final grade

usepassword: boolean

Password protected lesson?

width: number

Slideshow width

Generated using TypeDoc