Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Functions
lib.php File Reference

This file contains a library of functions and constants for the lti module. More...

Functions

 lti_add_instance ($lti, $mform)
 Given an object containing all the necessary data, (defined by the form in mod.html) this function will create a new instance and return the id number of the new instance. More...
 
 lti_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. More...
 
 lti_cron ()
 Function to be run periodically according to the moodle cron This function searches for things that need to be done, such as sending out mail, toggling flags etc ... More...
 
 lti_delete_instance ($id)
 Given an ID of an instance of this module, this function will permanently delete the instance and any data that depends on it. More...
 
 lti_get_coursemodule_info ($coursemodule)
 Given a coursemodule object, this function returns the extra information needed to print this activity in various places. More...
 
 lti_get_lti_types ()
 Returns available Basic LTI types. More...
 
 lti_get_lti_types_from_proxy_id ($toolproxyid)
 Returns available Basic LTI types that match the given tool proxy id. More...
 
 lti_get_post_actions ()
 Log post actions. More...
 
 lti_get_shortcuts ($defaultitem)
 Return aliases of this activity. More...
 
 lti_get_view_actions ()
 Log view actions. More...
 
 lti_grade_item_delete ($basiclti)
 
 lti_grade_item_update ($basiclti, $grades=null)
 
 lti_grades ($basicltiid)
 Must return an array of grades for a given instance of this module, indexed by user. More...
 
 lti_install ()
 Execute post-install custom actions for the module This function was added in 1.9. More...
 
 lti_print_recent_activity ($course, $isteacher, $timestart)
 Given a course and a time, this module should find recent activity that has occurred in basiclti activities and print it out. More...
 
 lti_scale_used ()
 
 lti_scale_used_anywhere ($scaleid)
 Checks if scale is being used by any instance of basiclti. More...
 
 lti_supports ($feature)
 List of features supported in URL module. More...
 
 lti_uninstall ()
 Execute post-uninstall custom actions for the module This function was added in 1.9. More...
 
 lti_update_grades ($basiclti, $userid=0, $nullifnone=true)
 Update activity grades. More...
 
 lti_update_instance ($lti, $mform)
 Given an object containing all the necessary data, (defined by the form in mod.html) this function will update an existing instance with new data. More...
 
 lti_user_complete ($course, $user, $mod, $basiclti)
 Print a detailed representation of what a user has done with a given particular instance of this module, for user activity reports. More...
 
 lti_user_outline ($course, $user, $mod, $basiclti)
 Return a small object with summary information about what a user has done with a given particular instance of this module Used for user activity reports. More...
 
 lti_view ($lti, $course, $cm, $context)
 Mark the activity completed (if required) and trigger the course_module_viewed event. More...
 
 mod_lti_core_calendar_provide_event_action (calendar_event $event, core_calendar\action_factory $factory, int $userid=0)
 This function receives a calendar event and returns the action associated with it, or null if there is none. More...
 
 mod_lti_get_fontawesome_icon_map ()
 Get icon mapping for font-awesome.
 

Detailed Description

This file contains a library of functions and constants for the lti module.

Author
Marc Alier
Jordi Piguillem
Nikolas Galanis
Chris Scribner
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later