. /** * */ require_once($CFG->libdir . "/externallib.php"); class mod_sga_external extends external_api { /* public static function get_usage_statistics() { global $USER; return '{"cursos": "10", "alunos":"20", "certificados":"12"}'; } public static function get_usage_statistics_parameters() { return new external_function_parameters( array() ); } public static function get_usage_statistics_returns() { return new external_value(PARAM_TEXT, 'JSON with statistics of this installation'); } */ }