|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Functions | |
| grade_get_course_grades ($courseid, $userid_or_ids=null) | |
| grade_get_course_grade ($userid, $courseid_or_ids=null) | |
| grade_get_grade_items_for_activity ($cm, $only_main_item=false) | |
| grade_is_user_graded_in_activity ($cm, $userid) | |
| grade_get_gradable_activities ($courseid, $modulename='') | |
| grade_get_course_grade | ( | $ | userid, |
| $ | courseid_or_ids = null |
||
| ) |
Returns the aggregated or calculated course grade for the given user(s).
| int | $userid | |
| int | $courseid | optional id of course or array of ids, empty means all uses courses (returns array if not present) |
Definition at line 127 of file querylib.php.

| grade_get_course_grades | ( | $ | courseid, |
| $ | userid_or_ids = null |
||
| ) |
Returns the aggregated or calculated course grade(s) in given course.
| int | $courseid | id of course |
| int | $userid_or_ids | optional id of the graded user or array of ids; if userid not used, returns only information about grade_item |
Definition at line 25 of file querylib.php.

| grade_get_gradable_activities | ( | $ | courseid, |
| $ | modulename = '' |
||
| ) |
Returns an array of activities (defined as $cm objects) which are gradeable from gradebook, outcomes are ignored.
| int | $courseid | If provided then restrict to one course. |
| string | $modulename | If defined (could be 'forum', 'assignment' etc) then only that type are returned. |
Definition at line 306 of file querylib.php.
| grade_get_grade_items_for_activity | ( | $ | cm, |
| $ | only_main_item = false |
||
| ) |
Returns all grade items (including outcomes) or main item for a given activity identified by $cm object.
| object | $cm | A course module object (preferably with modname property) |
Definition at line 239 of file querylib.php.


| grade_is_user_graded_in_activity | ( | $ | cm, |
| $ | userid | ||
| ) |
Returns whether or not user received grades in main grade item for given activity.
| object | $cm | |
| int | $userid |
Definition at line 270 of file querylib.php.
