original_string: public function get_courserecord() {
          global $DB;
  
          if ($this->courserecord == null) {
              $this->courserecord = $DB->get_record('course', array('id' => $this->properties->course));
          }
          return $this->courserecord;
      }
code: public function get_courserecord() {
          global $DB;
  
          if ($this->courserecord == null) {
              $this->courserecord = $DB->get_record('course', array('id' => $this->properties->course));
          }
          return $this->courserecord;
      }
code_tokens: public function get_courserecord ( ) { global $ DB ; if ( $ this -> courserecord == null ) { $ this -> courserecord = $ DB -> get_record ( 'course' , array ( 'id' => $ this -> properties -> course ) ) ; } return $ this -> courserecord ; }
docstring: Return the lesson course object.
  
  @return stdClass course
  @since  Moodle 3.3
docstring_tokens: Return the lesson course object .