Data Structures |
| class | assignment_base |
| class | mod_assignment_grading_form |
Namespaces |
| namespace | mod |
| | Local Library of functions for module scorm.
|
Enumerations |
| enum | ASSIGNMENT_COUNT_WORDS |
| enum | ASSIGNMENT_COUNT_LETTERS |
Functions |
| | assignment_delete_instance ($id) |
| | OTHER STANDARD FUNCTIONS ////////////////////////////////////////////////////////.
|
| | assignment_update_instance ($assignment) |
| | assignment_add_instance ($assignment) |
| | assignment_user_outline ($course, $user, $mod, $assignment) |
| | assignment_user_complete ($course, $user, $mod, $assignment) |
| | assignment_cron () |
| | assignment_get_user_grades ($assignment, $userid=0) |
| | assignment_update_grades ($assignment, $userid=0, $nullifnone=true) |
| | assignment_upgrade_grades () |
| | assignment_grade_item_update ($assignment, $grades=NULL) |
| | assignment_grade_item_delete ($assignment) |
| | assignment_get_participants ($assignmentid) |
| | assignment_pluginfile ($course, $cm, $context, $filearea, $args, $forcedownload) |
| | assignment_scale_used ($assignmentid, $scaleid) |
| | assignment_scale_used_anywhere ($scaleid) |
| | assignment_refresh_events ($courseid=0) |
| | assignment_print_recent_activity ($course, $viewfullnames, $timestart) |
| | assignment_get_recent_mod_activity (&$activities, &$index, $timestart, $courseid, $cmid, $userid=0, $groupid=0) |
| | assignment_print_recent_mod_activity ($activity, $courseid, $detail, $modnames) |
| | assignment_log_info ($log) |
| | GENERIC SQL FUNCTIONS.
|
| | assignment_get_unmailed_submissions ($starttime, $endtime) |
| | assignment_count_real_submissions ($cm, $groupid=0) |
| | assignment_get_all_submissions ($assignment, $sort="", $dir="DESC") |
| | assignment_get_coursemodule_info ($coursemodule) |
| | assignment_types () |
| | OTHER GENERAL FUNCTIONS FOR ASSIGNMENTS ///////////////////////////////////////.
|
| | assignment_print_overview ($courses, &$htmlarray) |
| | assignment_display_lateness ($timesubmitted, $timedue) |
| | assignment_get_view_actions () |
| | assignment_get_post_actions () |
| | assignment_get_types () |
| | assignment_reset_gradebook ($courseid, $type='') |
| | assignment_reset_userdata ($data) |
| | assignment_reset_course_form_definition (&$mform) |
| | assignment_reset_course_form_defaults ($course) |
| | assignment_get_extra_capabilities () |
| | assignment_supports ($feature) |
| | assignment_extend_settings_navigation (settings_navigation $settings, navigation_node $assignmentnode) |
| | assignment_pack_files ($filesforzipping) |
| | assignment_get_file_areas ($course, $cm, $context) |
| | mod_assignment_get_file_info ($browser, $areas, $course, $cm, $context, $filearea, $itemid, $filepath, $filename) |
| | assignment_page_type_list ($pagetype, $parentcontext, $currentcontext) |
| | assignment_grading_areas_list () |
Function to be run periodically according to the moodle cron
Finds all assignment notifications that have yet to be mailed out, and mails them
first execute all crons in plugins
Notices older than 1 day will not be mailed. This is to avoid the problem where cron has not been running for a long time, and then suddenly people are flooded with mail from the past few weeks or months
One day earlier
Override the language and timezone of the "current" user, so that mail is customised for the receiver.
Hold mail notification for hidden assignments until later
Definition at line 2745 of file lib.php.
Make sure up-to-date events are created for all assignment instances
This standard function will check all instances of this module and make sure there are up-to-date events created for each of them. If courseid = 0, then every assignment event in the site is checked, else only assignment events belonging to the course specified are checked. This function is used, in its new format, by restore_refresh_events()
- Parameters:
-
| $courseid | int optional If zero then all assignments for all courses are covered |
- Returns:
- boolean Always returns true
Definition at line 3119 of file lib.php.