. /** * External tool external functions and service definitions. * * @package mod_lti * @category external * @copyright 2015 Juan Leyva * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @since Moodle 3.0 */ $functions = array( 'mod_lti_get_tool_launch_data' => array( 'classname' => 'mod_lti_external', 'methodname' => 'get_tool_launch_data', 'description' => 'Return the launch data for a given external tool.', 'type' => 'read', 'capabilities' => 'mod/lti:view' ), 'mod_lti_get_ltis_by_courses' => array( 'classname' => 'mod_lti_external', 'methodname' => 'get_ltis_by_courses', 'description' => 'Returns a list of external tool instances in a provided set of courses, if no courses are provided then all the external tool instances the user has access to will be returned.', 'type' => 'read', 'capabilities' => 'mod/lti:view' ), 'mod_lti_view_lti' => array( 'classname' => 'mod_lti_external', 'methodname' => 'view_lti', 'description' => 'Trigger the course module viewed event and update the module completion status.', 'type' => 'write', 'capabilities' => 'mod/lti:view' ), );