Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
Allocates the submissions randomly in a cronjob task. More...
Public Member Functions | |
__construct (workshop $workshop) | |
execute (bool $checksubmissionphase=true) | |
Executes the allocation. | |
init () | |
Save the settings for the random allocator to execute it later. | |
ui () | |
Returns the HTML code to print the user interface. | |
Static Public Member Functions | |
static | delete_instance ($workshopid) |
Delete all data related to a given workshop module instance. | |
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. | |
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 | ( | bool | $checksubmissionphase = true | ) |
Executes the allocation.
bool | $checksubmissionphase | Check that the workshop is in submission phase before doing anything else. |
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.