Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
core_courseformat\output\local\state\section Class Reference
Inheritance diagram for core_courseformat\output\local\state\section:
renderable

Public Member Functions

 __construct (course_format $format, section_info $section)
 Constructor.
 
 export_for_template (\renderer_base $output)
 Export this data so it can be used as state object in the course editor.
 

Protected Member Functions

 get_has_restrictions ()
 Return if the section has a restrictions icon displayed or not.
 
 is_bulk_editable ()
 Return if the section can be selected for bulk editing.
 

Protected Attributes

course_format $format
 the course format class
 
section_info $section
 the course section class
 

Constructor & Destructor Documentation

◆ __construct()

core_courseformat\output\local\state\section::__construct ( course_format $format,
section_info $section )

Constructor.

Parameters
course_format$formatthe course format
section_info$sectionthe section info

Member Function Documentation

◆ export_for_template()

core_courseformat\output\local\state\section::export_for_template ( \renderer_base $output)

Export this data so it can be used as state object in the course editor.

Parameters
renderer_base$outputtypically, the renderer that's calling this function
Return values
arraydata context for a mustache template

◆ get_has_restrictions()

core_courseformat\output\local\state\section::get_has_restrictions ( )
protected

Return if the section has a restrictions icon displayed or not.

Return values
boolif the section has visible restrictions for the user.

◆ is_bulk_editable()

core_courseformat\output\local\state\section::is_bulk_editable ( )
protected

Return if the section can be selected for bulk editing.

Return values
boolif the section can be edited in bulk

The documentation for this class was generated from the following file: