MDL-32235 workshop manual allocator now uses the new workshop_allocation_result class
This commit is contained in:
@@ -54,12 +54,16 @@ class workshop_manual_allocator implements workshop_allocator {
|
||||
|
||||
/**
|
||||
* Allocate submissions as requested by user
|
||||
*
|
||||
* @return workshop_allocation_result
|
||||
*/
|
||||
public function init() {
|
||||
global $PAGE;
|
||||
|
||||
$mode = optional_param('mode', 'display', PARAM_ALPHA);
|
||||
|
||||
$result = new workshop_allocation_result($this);
|
||||
|
||||
switch ($mode) {
|
||||
case 'new':
|
||||
if (!confirm_sesskey()) {
|
||||
@@ -124,6 +128,9 @@ class workshop_manual_allocator implements workshop_allocator {
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
$result->set_status(workshop_allocation_result::STATUS_VOID);
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user