Moodle PHP Documentation 4.1
Moodle 4.1dev (Build: 20220512) (5e5e12e0)
Namespaces | Classes | Functions | Variables
format_topics

Namespaces

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\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
 

Functions

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

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 = 2022041200
 
 $renderer = $PAGE->get_renderer('format_topics')
 
 $widget = new $outputclass($format)
 
$plugin component = 'format_topics'
 
$plugin version = 2022041900
 

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