. /** * SCORM external functions and service definitions. * * @package mod_scorm * @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_scorm_view_scorm' => array( 'classname' => 'mod_scorm_external', 'methodname' => 'view_scorm', 'description' => 'Trigger the course module viewed event.', 'type' => 'write', 'capabilities' => '' ), 'mod_scorm_get_scorm_attempt_count' => array( 'classname' => 'mod_scorm_external', 'methodname' => 'get_scorm_attempt_count', 'description' => 'Return the number of attempts done by a user in the given SCORM.', 'type' => 'read', 'capabilities' => '' ), );