Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MDL-32235 workshop manual allocator now uses the new workshop_allocat…
…ion_result class
  • Loading branch information
mudrd8mz committed Apr 13, 2012
1 parent 31cea23 commit 8a62500
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mod/workshop/allocation/manual/lib.php
Expand Up @@ -54,12 +54,16 @@ public function __construct(workshop $workshop) {

/**
* 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()) {
Expand Down Expand Up @@ -124,6 +128,9 @@ public function init() {
}
break;
}

$result->set_status(workshop_allocation_result::STATUS_VOID);
return $result;
}

/**
Expand Down

0 comments on commit 8a62500

Please sign in to comment.