public static function action_category_show(\core_course_category $category) {
        if (!$category->can_change_visibility()) {
            throw new \moodle_exception('permissiondenied', 'error', '', null, 'core_course_category::can_change_visbility');
        }
        $category->show();
        return true;
    }
public static function action_category_show(\core_course_category $category) {
        if (!$category->can_change_visibility()) {
            throw new \moodle_exception('permissiondenied', 'error', '', null, 'core_course_category::can_change_visbility');
        }
        $category->show();
        return true;
    }
public static function action_category_show ( \ core_course_category $ category ) { if ( ! $ category -> can_change_visibility ( ) ) { throw new \ moodle_exception ( 'permissiondenied' , 'error' , '' , null , 'core_course_category::can_change_visbility' ) ; } $ category -> show ( ) ; return true ; }
Makes a category visible given a core_course_category object.

@param \core_course_category $category
@return bool
@throws \moodle_exception
Makes a category visible given a core_course_category object .