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

Files

file  format.php
 Topics course format.
 
file  lib.php
 This file contains main class for the course format Topic.
 
file  provider.php
 Privacy Subsystem implementation for format_topics.
 
file  renderer.php
 Renderer for outputting the topics course format.
 
file  restore_format_topics_plugin.class.php
 Specialised restore for format_topics.
 
file  upgrade.php
 Upgrade scripts for course format "Topics".
 

Namespaces

namespace  format_topics\privacy
  
 

Classes

class  format_topics
 Main class for the Topics course format. More...
 
class  format_topics\privacy\provider
 Privacy Subsystem for format_topics implementing null_provider. More...
 
class  format_topics_renderer
 Basic renderer for topics format. 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 format_topics. More...
 

Variables

if($topic=optional_param('topic', 0, PARAM_INT)) $context = context_course::instance($course->id)
 
 $course = course_get_format($course)->get_course()
 
 $renderer = $PAGE->get_renderer('format_topics')
 
if(!empty($displaysection)) else
 

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
core::output::inplace_editable

◆ xmldb_format_topics_upgrade()

xmldb_format_topics_upgrade (   $oldversion)

Upgrade script for format_topics.

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

Variable Documentation

◆ else

if (!empty( $displaysection)) else
Initial value:
{
$renderer->print_multiple_section_page($course, null, null, null, null)