Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Static Public Member Functions | List of all members
workshopallocation_scheduled\observer Class Reference

Class for workshopallocation_scheduled observers. More...

Static Public Member Functions

static workshop_viewed ($event)
 Triggered when the 'mod_workshop::event::course_module_viewed' event is triggered. More...
 

Detailed Description

Class for workshopallocation_scheduled observers.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ workshop_viewed()

static workshopallocation_scheduled\observer::workshop_viewed (   $event)
static

Triggered when the 'mod_workshop::event::course_module_viewed' event is triggered.

This does the same job as workshopallocation_scheduled_cron() but for the single workshop. The idea is that we do not need to wait for cron to execute. Displaying the workshop main view.php can trigger the scheduled allocation, too.

Parameters
mod_workshop::event::course_module_viewed$event
Return values
bool

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