Detailed Description
This class iterates over all users that are graded in a course. Returns detailed info about users and their grades.
- Author:
- Petr Skoda <skodak@moodle.org> http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Definition at line 35 of file lib.php.
Member Function Documentation
_pop
- Returns:
- object current grade object
Definition at line 275 of file lib.php.
_push
- Parameters:
-
- Returns:
- void
Definition at line 265 of file lib.php.
Close the iterator, do not forget to call this function.
- Returns:
- void
Definition at line 245 of file lib.php.
Constructor
- Parameters:
-
| object | $course | A course object |
| array | $grade_items | array of grade items, if not specified only user info returned |
| int | $groupid | iterate only group users if present |
| string | $sortfield1 | The first field of the users table by which the array of users will be sorted |
| string | $sortorder1 | The order in which the first sorting field will be sorted (ASC or DESC) |
| string | $sortfield2 | The second field of the users table by which the array of users will be sorted |
| string | $sortorder2 | The order in which the second sorting field will be sorted (ASC or DESC) |
Definition at line 58 of file lib.php.
Initialise the iterator
- Returns:
- boolean success
Definition at line 76 of file lib.php.
Returns information about the next user
- Returns:
- mixed array of user info, all grades and feedback or null when no more users found
Definition at line 178 of file lib.php.
Field Documentation
The documentation for this class was generated from the following file:
- C:/xampp/htdocs/moodle/grade/lib.php