Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
Allocators are responsible for assigning submissions to reviewers for assessments. More...
Public Member Functions | |
init () | |
Initialize the allocator and eventually process submitted data. | |
ui () | |
Print HTML to be displayed as the user interface. | |
Static Public Member Functions | |
static | delete_instance ($workshopid) |
Delete all data related to a given workshop module instance. | |
Allocators are responsible for assigning submissions to reviewers for assessments.
The task of the allocator is to assign the correct number of submissions to reviewers for assessment. Several allocation methods are expected and they can be combined. For example, teacher can allocate several submissions manually (by 'manual' allocator) and then let the other submissions being allocated randomly (by 'random' allocator). Allocation is actually done by creating an initial assessment record in the workshop_assessments table.
|
static |
Delete all data related to a given workshop module instance.
This is called from workshop_delete_instance().
int | $workshopid | id of the workshop module instance being deleted |
void |
Implemented in workshop_manual_allocator, workshop_random_allocator, and workshop_scheduled_allocator.
workshop_allocator::init | ( | ) |
Initialize the allocator and eventually process submitted data.
This method is called soon after the allocator is constructed and before any output is generated. Therefore it may process any data submitted and do other tasks. It must not produce any output.
moodle_exception |
workshop_allocation_result |
Implemented in workshop_manual_allocator, workshop_random_allocator, and workshop_scheduled_allocator.
workshop_allocator::ui | ( | ) |
Print HTML to be displayed as the user interface.
If a form is part of the UI, the caller should have called $PAGE->set_url(...)
stdClass | $wsoutput | workshop module renderer can be used |
string | HTML code to be echoed |
Implemented in workshop_manual_allocator, workshop_random_allocator, and workshop_scheduled_allocator.