original_string: public static function viewed($context, $courseid, $userid) {
          $event = \gradereport_overview\event\grade_report_viewed::create(
              array(
                  'context' => $context,
                  'courseid' => $courseid,
                  'relateduserid' => $userid,
              )
          );
          $event->trigger();
      }
code: public static function viewed($context, $courseid, $userid) {
          $event = \gradereport_overview\event\grade_report_viewed::create(
              array(
                  'context' => $context,
                  'courseid' => $courseid,
                  'relateduserid' => $userid,
              )
          );
          $event->trigger();
      }
code_tokens: public static function viewed ( $ context , $ courseid , $ userid ) { $ event = \ gradereport_overview \ event \ grade_report_viewed :: create ( array ( 'context' => $ context , 'courseid' => $ courseid , 'relateduserid' => $ userid , ) ) ; $ event -> trigger ( ) ; }
docstring: 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
docstring_tokens: Trigger the grade_report_viewed event