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

Namespaces

namespace  format_topics\courseformat
  
 
namespace  format_topics\output\courseformat
  
 
namespace  format_topics\output\courseformat\content
  
 
namespace  format_topics\output\courseformat\content\section
  
 
namespace  format_topics\privacy
  
 

Classes

class  format_topics
 Main class for the Topics course format. More...
 
class  format_topics\courseformat\stateactions
 
class  format_topics\output\courseformat\content
 Base class to render a course content. More...
 
class  format_topics\output\courseformat\content\section
 Base class to render a course section. More...
 
class  format_topics\output\courseformat\content\section\controlmenu
 Base class to render a course section menu. More...
 
class  format_topics\privacy\provider
 Privacy Subsystem for Topics course format implementing null_provider. More...
 
class  restore_format_topics_plugin
 Specialised restore for Topics course format. More...
 

Functions

 format_topics_inplace_editable ($itemtype, $itemid, $newvalue)
 Implements callback inplace_editable() allowing to edit values in-place.
 
 xmldb_format_topics_upgrade ($oldversion)
 Upgrade script for Topics course format.
 

Variables

 $context = context_course::instance($course->id)
 
 $course = $format->get_course()
 
if($topic=optional_param('topic', 0, PARAM_INT)) $format = course_get_format($course)
 
if(!empty($displaysection)) $outputclass = $format->get_output_classname('content')
 
 $plugin = 2023041800
 
 $renderer = $PAGE->get_renderer('format_topics')
 
 $widget = new $outputclass($format)
 
$plugin component = 'format_topics'
 
$plugin version = 2023042400
 

Detailed Description

Function Documentation

◆ format_topics_inplace_editable()

format_topics_inplace_editable ( $itemtype,
$itemid,
$newvalue )

Implements callback inplace_editable() allowing to edit values in-place.

Parameters
string$itemtype
int$itemid
mixed$newvalue
Return values
inplace_editable

◆ xmldb_format_topics_upgrade()

xmldb_format_topics_upgrade ( $oldversion)

Upgrade script for Topics course format.

Parameters
int | float$oldversionthe version we are upgrading from
Return values
boolresult