Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Allocates the submissions randomly in a cronjob task. More...
Public Member Functions | |
__construct (workshop $workshop) | |
execute () | |
Executes the allocation. More... | |
init () | |
Save the settings for the random allocator to execute it later. More... | |
ui () | |
Returns the HTML code to print the user interface. More... | |
Static Public Member Functions | |
static | delete_instance ($workshopid) |
Delete all data related to a given workshop module instance. More... | |
Protected Member Functions | |
store_settings ($enabled, $reset, workshop_random_allocator_setting $settings, workshop_allocation_result $result) | |
Stores the pre-defined random allocation settings for later usage. More... | |
Protected Attributes | |
$mform | |
workshop_scheduled_allocator_form with settings for the random allocator | |
$workshop | |
workshop instance | |
Allocates the submissions randomly in a cronjob task.
workshop_scheduled_allocator::__construct | ( | workshop | $workshop | ) |
workshop | $workshop | Workshop API object |
|
static |
Delete all data related to a given workshop module instance.
int | $workshopid | id of the workshop module instance being deleted |
void |
Implements workshop_allocator.
workshop_scheduled_allocator::execute | ( | ) |
Executes the allocation.
workshop_allocation_result |
workshop_scheduled_allocator::init | ( | ) |
Save the settings for the random allocator to execute it later.
Implements workshop_allocator.
|
protected |
Stores the pre-defined random allocation settings for later usage.
bool | $enabled | is the scheduled allocation enabled |
bool | $reset | reset the recent execution info |
workshop_random_allocator_setting | $settings | settings form data |
workshop_allocation_result | $result | logger |
workshop_scheduled_allocator::ui | ( | ) |
Returns the HTML code to print the user interface.
Implements workshop_allocator.