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

Extended wheresql for sitecoursetrigger

parent dc5c3fa5
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,6 @@ require_once(__DIR__ . '/../lib.php'); ...@@ -35,7 +35,6 @@ require_once(__DIR__ . '/../lib.php');
*/ */
class sitecourse extends base_automatic { class sitecourse extends base_automatic {
/** /**
* Checks the course and returns a repsonse, which tells if the course should be further processed. * Checks the course and returns a repsonse, which tells if the course should be further processed.
* @param $course object to be processed. * @param $course object to be processed.
...@@ -49,6 +48,12 @@ class sitecourse extends base_automatic { ...@@ -49,6 +48,12 @@ class sitecourse extends base_automatic {
return trigger_response::next(); return trigger_response::next();
} }
public function get_course_recordset_where($triggerid) {
global $DB;
list($insql, $inparam) = $DB->get_in_or_equal(SITEID, SQL_PARAMS_NAMED);
return array("{course}.id {$insql}", $inparam);
}
public function get_subpluginname() { public function get_subpluginname() {
return 'sitecourse'; return 'sitecourse';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment