public static function viewed($context, $courseid, $userid) {
        $event = \gradereport_overview\event\grade_report_viewed::create(
            array(
                'context' => $context,
                'courseid' => $courseid,
                'relateduserid' => $userid,
            )
        );
        $event->trigger();
    }
public static function viewed($context, $courseid, $userid) {
        $event = \gradereport_overview\event\grade_report_viewed::create(
            array(
                'context' => $context,
                'courseid' => $courseid,
                'relateduserid' => $userid,
            )
        );
        $event->trigger();
    }
public static function viewed ( $ context , $ courseid , $ userid ) { $ event = \ gradereport_overview \ event \ grade_report_viewed :: create ( array ( 'context' => $ context , 'courseid' => $ courseid , 'relateduserid' => $ userid , ) ) ; $ event -> trigger ( ) ; }
Trigger the grade_report_viewed event

@param  stdClass $context  course context
@param  int $courseid      course id
@param  int $userid        user id
@since Moodle 3.2
Trigger the grade_report_viewed event