A class to help define, describe, and export content in a specific context.
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 | $user |
| The user being exported.
|
|
A class to help define, describe, and export content in a specific context.
- Copyright
- 2020 Andrew Nicols andre.nosp@m.w@ni.nosp@m.cols..nosp@m.co.u.nosp@m.k
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
core\content\export\exporters\component_exporter::__construct |
( |
context | $context, |
|
|
string | $component, |
|
|
stdClass | $user, |
|
|
zipwriter | $archive ) |
Constructor for a new exporter.
- Parameters
-
context | $context | The context to export |
string | $component | The component that this instance relates to |
stdClass | $user | The user to be exported |
zipwriter | $archive | |
◆ get_archive()
core\content\export\exporters\component_exporter::get_archive |
( |
| ) |
|
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 | ) |
|
|
static |
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 |
( |
| ) |
|
Get the component name.
- Return values
-
◆ get_context()
core\content\export\exporters\component_exporter::get_context |
( |
| ) |
|
Get the context being exported.
- Return values
-
The documentation for this class was generated from the following file:
- lib/classes/content/export/exporters/component_exporter.php