This commit is contained in:
Jun Pataleta 2023-08-09 12:10:30 +08:00
commit 5dbb5cc3ea
No known key found for this signature in database
GPG Key ID: F83510526D99E2C7
3 changed files with 4 additions and 19 deletions

View File

@ -57,13 +57,9 @@ class get_groups_for_search_widget extends external_api {
* @param int $courseid
* @param string $actionbaseurl The base URL for the group action.
* @return array Groups and warnings to pass back to the calling widget.
* @throws coding_exception
* @throws invalid_parameter_exception
* @throws moodle_exception
* @throws restricted_context_exception
* @deprecated since 4.2
*/
protected static function execute(int $courseid, string $actionbaseurl): array {
public static function execute(int $courseid, string $actionbaseurl): array {
global $DB, $USER, $COURSE;
$params = self::validate_parameters(

View File

@ -16,7 +16,6 @@
namespace gradereport_grader\external;
use coding_exception;
use context_course;
use core_user_external;
use core_external\external_api;
@ -26,9 +25,6 @@ use core_external\external_single_structure;
use core_external\external_value;
use core_external\external_warnings;
use grade_report_grader;
use invalid_parameter_exception;
use moodle_exception;
use restricted_context_exception;
use user_picture;
defined('MOODLE_INTERNAL') || die;
@ -64,13 +60,10 @@ class get_users_in_report extends external_api {
*
* @param int $courseid Course ID to fetch the grader report for.
* @return array Users and warnings to pass back to the calling widget.
* @throws coding_exception
* @throws invalid_parameter_exception
* @throws moodle_exception
* @throws restricted_context_exception
*/
protected static function execute(int $courseid): array {
public static function execute(int $courseid): array {
global $PAGE;
self::validate_parameters(
self::execute_parameters(),
[

View File

@ -58,12 +58,8 @@ class get_groups_for_selector extends external_api {
*
* @param int $courseid
* @return array Groups and warnings to pass back to the calling widget.
* @throws coding_exception
* @throws invalid_parameter_exception
* @throws moodle_exception
* @throws restricted_context_exception
*/
protected static function execute(int $courseid): array {
public static function execute(int $courseid): array {
global $DB, $USER, $OUTPUT;
$params = self::validate_parameters(