. /** * User grade report external functions and service definitions. * * @package gradereport_user * @copyright 2015 Juan Leyva * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ $functions = array( 'gradereport_user_get_grades_table' => array( 'classname' => 'gradereport_user_external', 'methodname' => 'get_grades_table', 'classpath' => 'grade/report/user/externallib.php', 'description' => 'Get the user/s report grades table for a course', 'type' => 'read', 'capabilities' => 'gradereport/user:view' ), 'gradereport_user_view_grade_report' => array( 'classname' => 'gradereport_user_external', 'methodname' => 'view_grade_report', 'classpath' => 'grade/report/user/externallib.php', 'description' => 'Trigger the report view event', 'type' => 'write', 'capabilities' => 'gradereport/user:view' ) );