public static function action_course_show_by_record($courserecordorid) {
        if (is_int($courserecordorid)) {
            $courserecordorid = get_course($courserecordorid);
        }
        $course = new \core_course_list_element($courserecordorid);
        return self::action_course_show($course);
    }
public static function action_course_show_by_record($courserecordorid) {
        if (is_int($courserecordorid)) {
            $courserecordorid = get_course($courserecordorid);
        }
        $course = new \core_course_list_element($courserecordorid);
        return self::action_course_show($course);
    }
public static function action_course_show_by_record ( $ courserecordorid ) { if ( is_int ( $ courserecordorid ) ) { $ courserecordorid = get_course ( $ courserecordorid ) ; } $ course = new \ core_course_list_element ( $ courserecordorid ) ; return self :: action_course_show ( $ course ) ; }
Makes a course visible given a course id or a database record.

@global \moodle_database $DB
@param int|\stdClass $courserecordorid
@return bool
Makes a course visible given a course id or a database record .