|
static | check_report_access (int $courseid, int $userid, int $groupid=0) |
| Validate access permissions to the report.
|
|
static | get_report_data (stdClass $course, stdClass $context, ?stdClass $user, int $userid, int $groupid, bool $tabledata=true) |
| Get the report data.
|
|
◆ check_report_access()
static gradereport_user\external\user::check_report_access |
( |
int | $courseid, |
|
|
int | $userid, |
|
|
int | $groupid = 0 ) |
|
staticprotected |
Validate access permissions to the report.
- Parameters
-
int | $courseid | the courseid |
int | $userid | the user id to retrieve data from |
int | $groupid | the group id |
- Return values
-
array | with the parameters cleaned and other required information |
- Since
- Moodle 3.2
◆ get_grade_items()
static gradereport_user\external\user::get_grade_items |
( |
int | $courseid, |
|
|
int | $userid = 0, |
|
|
int | $groupid = 0 ) |
|
static |
Returns the complete list of grade items for users in a course.
- Parameters
-
int | $courseid | Course Id |
int | $userid | Only this user (optional) |
int | $groupid | Get users from this group only |
- Return values
-
- Since
- Moodle 3.2
◆ get_grade_items_parameters()
static gradereport_user\external\user::get_grade_items_parameters |
( |
| ) |
|
|
static |
Describes the parameters for get_grade_items.
- Return values
-
external_function_parameters | |
- Since
- Moodle 3.2
◆ get_grade_items_returns()
static gradereport_user\external\user::get_grade_items_returns |
( |
| ) |
|
|
static |
Describes tget_grade_items return value.
- Return values
-
external_single_structure | |
- Since
- Moodle 3.2
◆ get_grades_table()
static gradereport_user\external\user::get_grades_table |
( |
int | $courseid, |
|
|
int | $userid = 0, |
|
|
int | $groupid = 0 ) |
|
static |
Returns a list of grades tables for users in a course.
- Parameters
-
int | $courseid | Course Id |
int | $userid | Only this user (optional) |
int | $groupid | Get users from this group only |
- Return values
-
- Since
- Moodle 2.9
◆ get_grades_table_parameters()
static gradereport_user\external\user::get_grades_table_parameters |
( |
| ) |
|
|
static |
Describes the parameters for get_grades_table.
- Return values
-
external_function_parameters | |
- Since
- Moodle 2.9
◆ get_grades_table_returns()
static gradereport_user\external\user::get_grades_table_returns |
( |
| ) |
|
|
static |
Describes tget_grades_table return value.
- Return values
-
external_single_structure | |
- Since
- Moodle 2.9
◆ get_report_data()
static gradereport_user\external\user::get_report_data |
( |
stdClass | $course, |
|
|
stdClass | $context, |
|
|
?stdClass | $user, |
|
|
int | $userid, |
|
|
int | $groupid, |
|
|
bool | $tabledata = true ) |
|
staticprotected |
Get the report data.
- Parameters
-
stdClass | $course | course object |
stdClass | $context | context object |
null | stdClass | $user | user object (it can be null for all the users) |
int | $userid | the user to retrieve data from, 0 for all |
int | $groupid | the group id to filter |
bool | $tabledata | whether to get the table data (true) or the gradeitemdata |
- Return values
-
array | data and possible warnings |
- Since
- Moodle 3.2
◆ view_grade_report()
static gradereport_user\external\user::view_grade_report |
( |
int | $courseid, |
|
|
int | $userid = 0 ) |
|
static |
Trigger the user report events, do the same that the web interface view of the report.
- Parameters
-
int | $courseid | id of course |
int | $userid | id of the user the report belongs to |
- Return values
-
array | of warnings and status result |
- Since
- Moodle 2.9
- Exceptions
-
◆ view_grade_report_parameters()
static gradereport_user\external\user::view_grade_report_parameters |
( |
| ) |
|
|
static |
Returns description of method parameters.
- Return values
-
external_function_parameters | |
- Since
- Moodle 2.9
◆ view_grade_report_returns()
static gradereport_user\external\user::view_grade_report_returns |
( |
| ) |
|
|
static |
Returns description of method result value.
- Return values
-
- Since
- Moodle 2.9
The documentation for this class was generated from the following file:
- grade/report/user/classes/external/user.php