|
course_format | $format |
| the course format class
|
|
section_info | $section |
| the course section class
|
|
◆ __construct()
core_courseformat\output\local\state\section::__construct |
( |
course_format | $format, |
|
|
section_info | $section ) |
Constructor.
- Parameters
-
course_format | $format | the course format |
section_info | $section | the section info |
◆ 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 | $output | typically, the renderer that's calling this function |
- Return values
-
array | data 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
-
bool | if 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
-
bool | if the section can be edited in bulk |
The documentation for this class was generated from the following file:
- course/format/classes/output/local/state/section.php