Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
|
Functions | |
assign_add_instance (stdClass $data, mod_assign_mod_form $form=null) | |
Adds an assignment instance. | |
assign_check_updates_since (cm_info $cm, $from, $filter=array()) | |
Check if the module has any update that affects the current user since a given time. | |
assign_delete_instance ($id) | |
delete an assignment instance | |
assign_extend_settings_navigation (settings_navigation $settings, navigation_node $navref) | |
extend an assigment navigation settings | |
assign_get_coursemodule_info ($coursemodule) | |
Add a get_coursemodule_info function in case any assignment type wants to add 'extra' information for the course (see resource). | |
assign_get_extra_capabilities () | |
Returns all other capabilities used by this module. | |
assign_get_file_areas ($course, $cm, $context) | |
List the file areas that can be browsed. | |
assign_get_file_info ($browser, $areas, $course, $cm, $context, $filearea, $itemid, $filepath, $filename) | |
File browsing support for assign module. | |
assign_get_post_actions () | |
List the actions that correspond to a post of this module. | |
assign_get_recent_mod_activity (&$activities, &$index, $timestart, $courseid, $cmid, $userid=0, $groupid=0) | |
Returns all assignments since a given time. | |
assign_get_user_grades ($assign, $userid=0) | |
Return grade for given user or all users. | |
assign_get_view_actions () | |
List the actions that correspond to a view of this module. | |
assign_grade_item_update ($assign, $grades=null) | |
Create grade item for given assignment. | |
assign_page_type_list ($pagetype, $parentcontext, $currentcontext) | |
Return a list of page types. | |
assign_pluginfile ($course, $cm, context $context, $filearea, $args, $forcedownload, array $options=array()) | |
Serves intro attachment files. | |
assign_prepare_update_events ($assign, $course=null, $cm=null) | |
This actually updates the normal and completion calendar events. | |
assign_print_recent_activity ($course, $viewfullnames, $timestart) | |
Print recent activity from all assignments in a given course. | |
assign_print_recent_mod_activity ($activity, $courseid, $detail, $modnames) | |
Print recent activity from all assignments in a given course. | |
assign_refresh_events ($courseid=0, $instance=null, $cm=null) | |
This standard function will check all instances of this module and make sure there are up-to-date events created for each of them. | |
assign_rescale_activity_grades ($course, $cm, $oldmin, $oldmax, $newmin, $newmax) | |
Rescale all grades for this activity and push the new grades to the gradebook. | |
assign_reset_course_form_defaults ($course) | |
Course reset form defaults. | |
assign_reset_course_form_definition (&$mform) | |
Implementation of the function for printing the form elements that control whether the course reset functionality affects the assignment. | |
assign_reset_gradebook ($courseid, $type='') | |
Removes all grades from gradebook. | |
assign_reset_userdata ($data) | |
This function is used by the reset_course_userdata function in moodlelib. | |
assign_scale_used_anywhere ($scaleid) | |
Checks if scale is being used by any instance of assignment. | |
assign_supports ($feature) | |
Return the list if Moodle features this module supports. | |
assign_update_events ($assign, $override=null) | |
This function updates the events associated to the assign. | |
assign_update_grades ($assign, $userid=0, $nullifnone=true) | |
Update activity grades. | |
assign_update_instance (stdClass $data, $form) | |
Update an assignment instance. | |
assign_user_complete ($course, $user, $coursemodule, $assign) | |
Prints the complete info about a user's interaction with an assignment. | |
assign_user_outline ($course, $user, $coursemodule, $assignment) | |
Print the grade information for the assignment for this user. | |
mod_assign_cm_info_dynamic (cm_info $cm) | |
Sets dynamic information about a course module. | |
mod_assign_core_calendar_event_action_shows_item_count (calendar_event $event, $itemcount=0) | |
Callback function that determines whether an action event should be showing its item count based on the event type and the item count. | |
mod_assign_core_calendar_event_timestart_updated (\calendar_event $event, stdClass $instance) | |
This function will update the assign module according to the event that has been modified. | |
mod_assign_core_calendar_get_event_action_string (string $eventtype) | |
Callback to fetch the activity event type lang string. | |
mod_assign_core_calendar_get_valid_event_timestart_range (\calendar_event $event, stdClass $instance) | |
This function calculates the minimum and maximum cutoff values for the timestart of the given event. | |
mod_assign_core_calendar_is_event_visible (calendar_event $event, $userid=0) | |
Is the event visible? | |
mod_assign_core_calendar_provide_event_action (calendar_event $event, core_calendar\action_factory $factory, $userid=0) | |
This function receives a calendar event and returns the action associated with it, or null if there is none. | |
mod_assign_get_completion_active_rule_descriptions ($cm) | |
Callback which returns human-readable strings describing the active completion custom rules for the module instance. | |
mod_assign_get_path_from_pluginfile (string $filearea, array $args) | |
Given an array with a file path, it returns the itemid and the filepath for the defined filearea. | |
mod_assign_output_fragment_gradingpanel ($args) | |
Serve the grading panel as a fragment. | |
mod_assign_user_preferences () | |
Return a list of all the user preferences used by mod_assign. | |