Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Variables
format.php File Reference

Course format featuring social forum. More...

Variables

 $cm = cm_info::create($coursemodule)
 
if(empty($forum)) $coursemodule = get_coursemodule_from_instance('forum', $forum->id)
 
 $discussionsrenderer = $rendererfactory->get_social_discussion_list_renderer($forumentity)
 
 $entityfactory = mod_forum\local\container::get_entity_factory()
 
 $forum = forum_get_course_forum($course->id, 'social')
 
 $forumentity = $entityfactory->get_forum_from_stdclass($forum, $modcontext, $coursemodule, $course)
 
 $modcontext = context_module::instance($coursemodule->id)
 
 $numdiscussions = course_get_format($course)->get_course()->numdiscussions
 
 $pageno = optional_param('p', 0, PARAM_INT)
 
if($numdiscussions< 1) $rendererfactory = mod_forum\local\container::get_renderer_factory()
 
 if (trim( $forum->intro) !='')
 

Detailed Description

Course format featuring social forum.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later