Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
format_weeks

Namespaces

namespace  format_weeks\output
  
 
namespace  format_weeks\privacy
  
 

Classes

class  format_weeks
 Main class for the Weeks course format. More...
 
class  format_weeks\output\renderer
 Basic renderer for weeks format. More...
 
class  format_weeks\privacy\provider
 Privacy Subsystem for format_weeks implementing null_provider. More...
 
class  format_weeks_observer
 Event observer for format_weeks. More...
 
class  restore_format_weeks_plugin
 Specialised restore for format_weeks. More...
 

Functions

 format_weeks_inplace_editable ($itemtype, $itemid, $newvalue)
 Implements callback inplace_editable() allowing to edit values in-place.
 
 xmldb_format_weeks_upgrade ($oldversion)
 Upgrade script for format_weeks.
 

Variables

if($week=optional_param('week', 0, PARAM_INT)) $format = course_get_format($course)
 
 $observers
 
 $output = new $outputclass($format)
 
if(!is_null($displaysection)) $outputclass = $format->get_output_classname('content')
 
 $renderer = $PAGE->get_renderer('format_weeks')
 

Detailed Description

Function Documentation

◆ format_weeks_inplace_editable()

format_weeks_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_weeks_upgrade()

xmldb_format_weeks_upgrade ( $oldversion)

Upgrade script for format_weeks.

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

Variable Documentation

◆ $observers

$observers
Initial value:
= array(
array(
'eventname' => '\core\event\course_updated',
'callback' => 'format_weeks_observer::course_updated',
),
array(
'eventname' => '\core\event\course_section_created',
'callback' => 'format_weeks_observer::course_section_created',
),
array(
'eventname' => '\core\event\course_section_deleted',
'callback' => 'format_weeks_observer::course_section_deleted',
)
)