private function get_groups_available_in_forum() : array {
        $course = $this->forum->get_course_record();
        $coursemodule = $this->forum->get_course_module_record();

        return groups_get_all_groups($course->id, 0, $coursemodule->groupingid);
    }
private function get_groups_available_in_forum() : array {
        $course = $this->forum->get_course_record();
        $coursemodule = $this->forum->get_course_module_record();

        return groups_get_all_groups($course->id, 0, $coursemodule->groupingid);
    }
private function get_groups_available_in_forum ( ) : array { $ course = $ this -> forum -> get_course_record ( ) ; $ coursemodule = $ this -> forum -> get_course_module_record ( ) ; return groups_get_all_groups ( $ course -> id , 0 , $ coursemodule -> groupingid ) ; }
Get the groups details for all groups available to the forum.

@return  stdClass[]
Get the groups details for all groups available to the forum .