public function get_courserecord() {
        global $DB;

        if ($this->courserecord == null) {
            $this->courserecord = $DB->get_record('course', array('id' => $this->properties->course));
        }
        return $this->courserecord;
    }
public function get_courserecord() {
        global $DB;

        if ($this->courserecord == null) {
            $this->courserecord = $DB->get_record('course', array('id' => $this->properties->course));
        }
        return $this->courserecord;
    }
public function get_courserecord ( ) { global $ DB ; if ( $ this -> courserecord == null ) { $ this -> courserecord = $ DB -> get_record ( 'course' , array ( 'id' => $ this -> properties -> course ) ) ; } return $ this -> courserecord ; }
Return the lesson course object.

@return stdClass course
@since  Moodle 3.3
Return the lesson course object .