Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Files | Namespaces | Classes | Variables
format_social

Files

file  format.php
 Course format featuring social forum.
 
file  lib.php
 This file contains main class for the course format Social.
 
file  provider.php
 Privacy Subsystem implementation for format_social.
 

Namespaces

 

Classes

class  format_social
 Main class for the Social course format. More...
 
class  format_social\privacy\provider
 Privacy Subsystem for format_social implementing null_provider. 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