diff --git a/db/services.php b/db/services.php index ff69dcb..3095621 100644 --- a/db/services.php +++ b/db/services.php @@ -514,4 +514,32 @@ $functions = [ 'capabilities' => 'local/treestudyplan:editstudyplan', // Advises the admin which capabilities are required 'ajax' => true, 'loginrequired' => true, - ],]; + ], + 'local_treestudyplan_scan_badge_progress' => [ //web service function name + 'classname' => '\local_treestudyplan\courseservice', //class containing the external function + 'methodname' => 'scan_badge_progress', //external function name + 'description' => 'Scan progress of students in attaining badge', //human readable description of the web service function + 'type' => 'read', //database rights of the web service function (read, write) + 'capabilities' => 'local/treestudyplan:viewuserreports', // Advises the admin which capabilities are required + 'ajax' => true, + 'loginrequired' => true, + ], + 'local_treestudyplan_scan_completion_progress' => [ //web service function name + 'classname' => '\local_treestudyplan\courseservice', //class containing the external function + 'methodname' => 'scan_completion_progress', //external function name + 'description' => 'Scan progress of students in attaining completions', //human readable description of the web service function + 'type' => 'read', //database rights of the web service function (read, write) + 'capabilities' => 'local/treestudyplan:viewuserreports', // Advises the admin which capabilities are required + 'ajax' => true, + 'loginrequired' => true, + ], + 'local_treestudyplan_scan_grade_progress' => [ //web service function name + 'classname' => '\local_treestudyplan\courseservice', //class containing the external function + 'methodname' => 'scan_grade_progress', //external function name + 'description' => 'Scan progress of students in attaining grades', //human readable description of the web service function + 'type' => 'read', //database rights of the web service function (read, write) + 'capabilities' => 'local/treestudyplan:viewuserreports', // Advises the admin which capabilities are required + 'ajax' => true, + 'loginrequired' => true, + ], +]; diff --git a/version.php b/version.php index ca92318..6572853 100644 --- a/version.php +++ b/version.php @@ -1,6 +1,6 @@ component = 'local_treestudyplan'; // Recommended since 2.0.2 (MDL-26035). Required since 3.0 (MDL-48494) -$plugin->version = 2023061600; // YYYYMMDDHH (year, month, day, iteration) +$plugin->version = 2023061601; // YYYYMMDDHH (year, month, day, iteration) $plugin->requires = 2021051700; // YYYYMMDDHH (This is the release version for Moodle 3.11) $plugin->dependencies = [