LLMS_Processor_Course_Data

LLMS_Processor_Course_Data


Description Description

Handle background processing of average progress & average grade for courses.

The background process calculates "expensive" aggregate course data and stores them on the wp_postmeta table so the data can be access later with a single database read.

The process is queued for recalculation when:

  • Students enroll.
  • Students unenroll.
  • Students complete lessons.
  • Students complete quizzes.

Upon completion, the following values can be accessed via the LLMS_Course model to retrieve the aggregate data for the course:

  • Average grade: LLMS_Course::get( 'average_grade' )
  • Average progress: LLMS_Course::get( 'average_progress' )
  • Number of currently enrolled students: LLMS_Course::get( 'enrolled_students' )

Source Source

File: includes/processors/class.llms.processor.course.data.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
4.12.0 Remove (protected) method LLMS_Processor_Course_Data::complete(), the override of the parent method is no longer needed.
3.15.0 Introduced.


Top ↑

Methods Methods


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.