original_string: public static function create_from_course(\stdClass $course) {
          $params = array(
              'context' => \context_course::instance($course->id)
          );
          $event = \mod_assign\event\course_module_instance_list_viewed::create($params);
          $event->add_record_snapshot('course', $course);
          return $event;
      }
code: public static function create_from_course(\stdClass $course) {
          $params = array(
              'context' => \context_course::instance($course->id)
          );
          $event = \mod_assign\event\course_module_instance_list_viewed::create($params);
          $event->add_record_snapshot('course', $course);
          return $event;
      }
code_tokens: public static function create_from_course ( \ stdClass $ course ) { $ params = array ( 'context' => \ context_course :: instance ( $ course -> id ) ) ; $ event = \ mod_assign \ event \ course_module_instance_list_viewed :: create ( $ params ) ; $ event -> add_record_snapshot ( 'course' , $ course ) ; return $ event ; }
docstring: Create the event from course record.
  
  @param \stdClass $course
  @return course_module_instance_list_viewed
docstring_tokens: Create the event from course record .