MDL-32235 workshop manual allocator now uses the new workshop_allocation_result class

This commit is contained in:
David Mudrak
2012-04-13 04:49:45 +02:00
parent 31cea236af
commit 8a62500fd5
+7
View File
@@ -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;
}
/**