Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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(!is_null($displaysection)) $outputclass = $format->get_output_classname('content')
 
 $plugin = 2024041600
 
 $renderer = $PAGE->get_renderer('format_topics')
 
 $widget = new $outputclass($format)
 
$plugin component = 'format_topics'
 
$plugin version = 2024042200
 

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