Skip to content
Snippets Groups Projects
Unverified Commit 46a797c4 authored by Tobias Reischmann's avatar Tobias Reischmann
Browse files

Added function to retrive one process instance

parent 13caf927
No related branches found
No related tags found
No related merge requests found
......@@ -59,6 +59,17 @@ class process_manager {
return $processes;
}
/**
* Creates a process for the course which is at the respective step the trigger is followed by.
* @param int $processid id of the process
* @return process
*/
public static function get_process_by_id($processid) {
global $DB;
$record = $DB->get_record('tool_cleanupcourses_process', array('id' => $processid));
return process::from_record($record);
}
/**
* Proceeds the process to the next step.
* @param process $process
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment