Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Static Public Member Functions | List of all members
core_badges_observer Class Reference

Event observer for badges. More...

Static Public Member Functions

static badge_criteria_review (\core\event\badge_awarded $event)
 Triggered when 'badge_awarded' event happens. More...
 
static cohort_criteria_review (\core\event\cohort_member_added $event)
 Triggered when the 'cohort_member_added' event happens. More...
 
static competency_criteria_review (\core\event\competency_evidence_created $event)
 Triggered when '\core\event\competency_evidence_created' event is triggered. More...
 
static course_criteria_review (\core\event\course_completed $event)
 Triggered when 'course_completed' event is triggered. More...
 
static course_module_criteria_review (\core\event\course_module_completion_updated $event)
 Triggered when 'course_module_completion_updated' event is triggered. More...
 
static profile_criteria_review (\core\event\user_updated $event)
 Triggered when 'user_updated' event happens. More...
 

Detailed Description

Event observer for badges.

Member Function Documentation

◆ badge_criteria_review()

static core_badges_observer::badge_criteria_review ( \core\event\badge_awarded  $event)
static

Triggered when 'badge_awarded' event happens.

Parameters
core\event\badge_awarded$eventevent generated when a badge is awarded.

◆ cohort_criteria_review()

static core_badges_observer::cohort_criteria_review ( \core\event\cohort_member_added  $event)
static

Triggered when the 'cohort_member_added' event happens.

Parameters
core\event\cohort_member_added$eventgenerated when a user is added to a cohort

◆ competency_criteria_review()

static core_badges_observer::competency_criteria_review ( \core\event\competency_evidence_created  $event)
static

Triggered when '\core\event\competency_evidence_created' event is triggered.

Parameters
core\event\competency_evidence_created$event

◆ course_criteria_review()

static core_badges_observer::course_criteria_review ( \core\event\course_completed  $event)
static

Triggered when 'course_completed' event is triggered.

Parameters
core\event\course_completed$event

◆ course_module_criteria_review()

static core_badges_observer::course_module_criteria_review ( \core\event\course_module_completion_updated  $event)
static

Triggered when 'course_module_completion_updated' event is triggered.

Parameters
core\event\course_module_completion_updated$event

◆ profile_criteria_review()

static core_badges_observer::profile_criteria_review ( \core\event\user_updated  $event)
static

Triggered when 'user_updated' event happens.

Parameters
core\event\user_updated$eventevent generated when user profile is updated.

The documentation for this class was generated from the following file: