The course exporter.
More...
|
zipwriter | $archive |
| A reference to the zipwriter.
|
|
string | $component = null |
| The component that this instance belongs to.
|
|
context | $context = null |
| The context to be exported.
|
|
stdClass | $course |
| The course being exported.
|
|
course_modinfo | $modinfo |
| The course_modinfo instnace for this course.
|
|
stdClass | $user |
| The user being exported.
|
|
◆ __construct()
core\content\export\exporters\course_exporter::__construct |
( |
context_course | $context, |
|
|
stdClass | $user, |
|
|
zipwriter | $archive ) |
Constructor for the course exporter.
- Parameters
-
context_course | $context | The context of the course to export |
stdClass | $user | |
zipwriter | $archive | |
◆ add_course_about_page()
core\content\export\exporters\course_exporter::add_course_about_page |
( |
| ) |
|
|
protected |
Add course about page.
- Return values
-
null|string | The URL to the about page if one was generated |
◆ export_course()
core\content\export\exporters\course_exporter::export_course |
( |
array | $exportedcontexts | ) |
|
Export the course.
- Parameters
-
context[] | $exportedcontexts | A list of contexts which were successfully exported |
◆ export_mod_content()
core\content\export\exporters\course_exporter::export_mod_content |
( |
context_module | $modcontext, |
|
|
array | $exportables ) |
Export all exportable content for an activity module.
- Parameters
-
context_module | $modcontect | |
exportable_item[] | $export_exportables | |
◆ get_archive()
core\content\export\exporters\component_exporter::get_archive |
( |
| ) |
|
|
inherited |
Get the archive used for export.
- Return values
-
◆ get_classname_for_component()
static core\content\export\exporters\component_exporter::get_classname_for_component |
( |
string | $component | ) |
|
|
staticinherited |
Get the name of the exporter for the specified component.
- Parameters
-
string | $component | The component to fetch a classname for |
- Return values
-
string | The classname for the component |
◆ get_component()
core\content\export\exporters\component_exporter::get_component |
( |
| ) |
|
|
inherited |
Get the component name.
- Return values
-
◆ get_context()
core\content\export\exporters\component_exporter::get_context |
( |
| ) |
|
|
inherited |
Get the context being exported.
- Return values
-
◆ get_course_section()
core\content\export\exporters\course_exporter::get_course_section |
( |
array | $exportedcontexts, |
|
|
section_info | $section ) |
|
protected |
Fetch data for the specified course section.
- Parameters
-
context[] | $exportedcontexts | A list of contexts which were successfully exported |
section_info | $section | The section being exported |
- Return values
-
◆ get_mod_intro_data()
core\content\export\exporters\course_exporter::get_mod_intro_data |
( |
context_module | $modcontext | ) |
|
|
protected |
Get the course_module introduction data.
- Parameters
-
context_module | $modcontect | |
- Return values
-
null|string | The content of the intro area |
The documentation for this class was generated from the following file:
- lib/classes/content/export/exporters/course_exporter.php