original_string: public static function load($lessonid) {
          global $DB;
  
          if (!$lesson = $DB->get_record('lesson', array('id' => $lessonid))) {
              print_error('invalidcoursemodule');
          }
          return new lesson($lesson);
      }
code: public static function load($lessonid) {
          global $DB;
  
          if (!$lesson = $DB->get_record('lesson', array('id' => $lessonid))) {
              print_error('invalidcoursemodule');
          }
          return new lesson($lesson);
      }
code_tokens: public static function load ( $ lessonid ) { global $ DB ; if ( ! $ lesson = $ DB -> get_record ( 'lesson' , array ( 'id' => $ lessonid ) ) ) { print_error ( 'invalidcoursemodule' ) ; } return new lesson ( $ lesson ) ; }
docstring: Generates a lesson object from the database given its id
  @static
  @param int $lessonid
  @return lesson
docstring_tokens: Generates a lesson object from the database given its id