Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
format_social

Namespaces

namespace  format_social\output
 
namespace  format_social\privacy
 

Classes

class  format_social
 Main class for the Social course format. More...
 
class  format_social\output\renderer
 
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