|
cm_info | $cm |
| the course module to display
|
|
bool | $exportcontent |
| if cmitem HTML content must be exported as well
|
|
course_format | $format |
| the course format class
|
|
section_info | $section |
| the course section class
|
|
◆ __construct()
core_courseformat\output\local\state\cm::__construct |
( |
course_format | $format, |
|
|
section_info | $section, |
|
|
cm_info | $cm, |
|
|
bool | $exportcontent = false ) |
Constructor.
- Parameters
-
course_format | $format | the course format |
section_info | $section | the section data |
cm_info | $cm | the course module data |
bool | $exportcontent | = false if pre-rendered cmitem must be exported. |
◆ export_for_template()
core_courseformat\output\local\state\cm::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
-
stdClass | data context for a mustache template |
◆ get_has_restrictions()
core_courseformat\output\local\state\cm::get_has_restrictions |
( |
| ) |
|
|
protected |
Return if the activity has a restrictions icon displayed or not.
- Return values
-
bool | if the activity has visible restrictions for the user. |
The documentation for this class was generated from the following file:
- course/format/classes/output/local/state/cm.php