original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Makes a course visible given a course id or a database record.
  
  @global \moodle_database $DB
  @param int|\stdClass $courserecordorid
  @return bool
docstring_tokens: Makes a course visible given a course id or a database record .