|
string | $path |
| plugin path.
|
|
const | MODULE = 'subsection' |
| Module name.
|
|
const | PLUGINNAME = 'mod_subsection' |
| The plugin name.
|
|
◆ __construct()
mod_subsection\manager::__construct |
( |
cm_info | $cm, |
|
|
stdClass | $instance ) |
Class constructor.
- Parameters
-
cm_info | $cm | course module info object |
stdClass | $instance | activity instance object. |
◆ create_from_coursemodule()
static mod_subsection\manager::create_from_coursemodule |
( |
| $cm | ) |
|
|
static |
Create a manager instance from a course_modules record.
- Parameters
-
stdClass | cm_info | $cm | an activity record |
- Return values
-
◆ create_from_data_record()
static mod_subsection\manager::create_from_data_record |
( |
| $record | ) |
|
|
static |
Create a manager instance from a subsection_record entry.
- Parameters
-
stdClass | $record | the subsection_record record |
- Return values
-
◆ create_from_id()
static mod_subsection\manager::create_from_id |
( |
int | $courseid, |
|
|
int | $id ) |
|
static |
Create a manager instance from a record id.
- Parameters
-
int | $courseid | the course id |
int | $id | an activity id |
- Return values
-
◆ create_from_instance()
static mod_subsection\manager::create_from_instance |
( |
stdClass | $instance | ) |
|
|
static |
Create a manager instance from an instance record.
- Parameters
-
stdClass | $instance | an activity record |
- Return values
-
◆ get_context()
mod_subsection\manager::get_context |
( |
| ) |
|
Return the current context.
- Return values
-
◆ get_coursemodule()
mod_subsection\manager::get_coursemodule |
( |
| ) |
|
Return the current cm_info.
- Return values
-
◆ get_delegated_section_info()
mod_subsection\manager::get_delegated_section_info |
( |
| ) |
|
Get the delegated section info.
- Return values
-
section_info|null | the delegated section info |
◆ get_instance()
mod_subsection\manager::get_instance |
( |
| ) |
|
Return the current instance.
- Return values
-
stdClass | the instance record |
◆ get_renderer()
mod_subsection\manager::get_renderer |
( |
?moodle_page | $page = null | ) |
|
Return the current module renderer.
- Parameters
-
- Return values
-
◆ set_module_viewed()
mod_subsection\manager::set_module_viewed |
( |
stdClass | $course | ) |
|
Trigger module viewed event and set the module viewed for completion.
- Parameters
-
stdClass | $course | course object |
The documentation for this class was generated from the following file:
- mod/subsection/classes/manager.php