original_string: public static function action_course_show(\core_course_list_element $course) {
          if (!$course->can_change_visibility()) {
              throw new \moodle_exception('permissiondenied', 'error', '', null,
                  'core_course_list_element::can_change_visbility');
          }
          return course_change_visibility($course->id, true);
      }
code: public static function action_course_show(\core_course_list_element $course) {
          if (!$course->can_change_visibility()) {
              throw new \moodle_exception('permissiondenied', 'error', '', null,
                  'core_course_list_element::can_change_visbility');
          }
          return course_change_visibility($course->id, true);
      }
code_tokens: public static function action_course_show ( \ core_course_list_element $ course ) { if ( ! $ course -> can_change_visibility ( ) ) { throw new \ moodle_exception ( 'permissiondenied' , 'error' , '' , null , 'core_course_list_element::can_change_visbility' ) ; } return course_change_visibility ( $ course -> id , true ) ; }
docstring: Makes a course visible given a \core_course_list_element object.
  
  @param \core_course_list_element $course
  @return bool
  @throws \moodle_exception
docstring_tokens: Makes a course visible given a \ core_course_list_element object .