ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct () | |
getConfig (string $a_comp) | |
Get configuration (note that configurations are optional, null may be returned!) More... | |
exportObject (string $a_type, int $a_id, string $a_target_release="") | |
Export an ILIAS object (the object type must be known by objDefinition) More... | |
exportEntity (string $a_entity, string $a_id, string $a_target_release, string $a_component, string $a_title, string $a_export_dir, string $a_type_for_file="") | |
Export an ILIAS entity. More... | |
processExporter (string $a_comp, string $a_class, string $a_entity, string $a_target_release, array $a_id=null) | |
Process exporter. More... | |
Static Public Member Functions | |
static | _getValidExportSubItems (int $a_ref_id) |
Get a list of subitems of a repository resource, that implement the export. More... | |
static | _getLastExportFileDate (int $a_obj_id, string $a_type="", string $a_obj_type="") |
Get date of last export file. More... | |
static | _getLastExportFileInformation (int $a_obj_id, string $a_type="", string $a_obj_type="") |
Get last export file information. More... | |
static | _getExportDirectory (int $a_obj_id, string $a_type="xml", string $a_obj_type="", string $a_entity="") |
Get export directory for an repository object. More... | |
static | _getExportFiles (int $a_obj_id, $a_export_types="", string $a_obj_type="") |
static | _createExportDirectory (int $a_obj_id, string $a_export_type="xml", string $a_obj_type="") |
static | _generateIndexFile (string $a_filename, int $a_obj_id, array $a_files, string $a_type="") |
Generates an index.html file including links to all xml files included (for container exports) More... | |
Data Fields | |
string | $export_run_dir = '' |
Static Protected Member Functions | |
static | createPathFromId (int $a_container_id, string $a_name) |
Protected Attributes | |
ilLogger | $log |
Private Attributes | |
array | $configs = [] |
array | $cnt = [] |
ilXmlWriter | $manifest_writer = null |
Static Private Attributes | |
static array | $new_file_structure |
static array | $export_implementer = array("tst", "lm", "glo", "sahs") |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Export
Definition at line 24 of file class.ilExport.php.
ilExport::__construct | ( | ) |
|
static |
Definition at line 251 of file class.ilExport.php.
References $DIC, $ilErr, _getExportDirectory(), ilObject\_lookupType(), and ilFileUtils\makeDirParents().
Referenced by ILIAS\Notes\Export\NotesHtmlExport\__construct(), ILIAS\Wiki\Export\WikiHtmlExport\buildExportFile(), ilObjBlogGUI\buildExportFile(), ilObjGlossary\createExportDirectory(), ilObjFileBasedLMGUI\exportHTML(), ilExportContainer\exportObject(), exportObject(), ILIAS\Portfolio\Export\PortfolioHtmlExport\initDirectories(), and ilOrgUnitExporter\sendAndCreateSimpleExportFile().
|
static |
Generates an index.html file including links to all xml files included (for container exports)
Definition at line 273 of file class.ilExport.php.
References $DIC, Vendor\Package\$f, $lng, ilObject\_lookupTitle(), ilObject\_lookupType(), and ilUtil\getStyleSheetLocation().
|
static |
Get export directory for an repository object.
int | $a_obj_id | object id |
string | $a_type | export type ("xml", "html", ...), default "xml" |
string | $a_obj_type | object type (optional, if not given, type is looked up) |
string | $a_entity |
Definition at line 150 of file class.ilExport.php.
References $DIC, ilObject\_lookupType(), and ilFileUtils\getDataDir().
Referenced by ILIAS\Notes\Export\NotesHtmlExport\__construct(), _createExportDirectory(), _getExportFiles(), ilExportContainer\addSubitems(), ILIAS\Wiki\Export\WikiHtmlExport\buildExportFile(), ilObjBlogGUI\buildExportFile(), ilExportGUI\delete(), ilExportGUI\download(), ilSAHSEditGUI\executeCommand(), ilObjFileBasedLMGUI\exportHTML(), ilExportContainer\exportObject(), exportObject(), ilObjUser\exportPersonalData(), ilCmiXapiDataSet\getDependencies(), ilDclContentExporter\getExportContentPath(), ilObjGlossary\getExportDirectory(), ilObjQuestionPool\getExportDirectory(), ilDclExportTableGUI\getExportFiles(), ilScormAiccDataSet\getExtendedXmlRepresentation(), ilObjUser\getPersonalDataExportFile(), ILIAS\Wiki\Export\WikiHtmlExport\getUserExportFile(), ILIAS\Portfolio\Export\PortfolioHtmlExport\init(), ilOrgUnitExporter\sendAndCreateSimpleExportFile(), ilObjUser\sendPersonalDataFile(), ILIAS\Notes\Export\NotesHtmlExport\zipPackage(), ILIAS\Blog\Export\BlogHtmlExport\zipPackage(), and ILIAS\Portfolio\Export\PortfolioHtmlExport\zipPackage().
|
static |
int | $a_obj_id | |
string | array | $a_export_types | |
string | $a_obj_type |
Definition at line 196 of file class.ilExport.php.
References $type, _getExportDirectory(), ilObject\_lookupType(), and ILIAS\Repository\int().
Referenced by _getLastExportFileDate(), _getLastExportFileInformation(), ilExportTableGUI\getExportFiles(), and ilObjGlossary\getExportFiles().
|
static |
Get date of last export file.
int | $a_obj_id | object id |
string | $a_type | export type ("xml", "html", ...), default "xml" |
string | $a_obj_type | object type (optional, if not given, type is looked up) |
Definition at line 112 of file class.ilExport.php.
References _getExportFiles(), and ilArrayUtil\sortArray().
Referenced by _getValidExportSubItems().
|
static |
Get last export file information.
int | $a_obj_id | object id |
string | $a_type | export type ("xml", "html", ...), default "xml" |
string | $a_obj_type | object type (optional, if not given, type is looked up) |
Definition at line 129 of file class.ilExport.php.
References _getExportFiles(), and ilArrayUtil\sortArray().
|
static |
Get a list of subitems of a repository resource, that implement the export.
Includes also information on last export file.
Definition at line 84 of file class.ilExport.php.
References $DIC, _getLastExportFileDate(), and ILIAS\Repository\int().
Referenced by ilSubItemSelectionTableGUI\__construct().
|
staticprotected |
Definition at line 623 of file class.ilExport.php.
ilExport::exportEntity | ( | string | $a_entity, |
string | $a_id, | ||
string | $a_target_release, | ||
string | $a_component, | ||
string | $a_title, | ||
string | $a_export_dir, | ||
string | $a_type_for_file = "" |
||
) |
Export an ILIAS entity.
string | $a_entity | entity type, e.g. "sty" |
mixed | $a_id | entity id |
string | $a_target_release | target release |
string | $a_component | component that exports (e.g. "Services/Style") |
Definition at line 410 of file class.ilExport.php.
References $c, $DIC, $tpl, ilFileUtils\delDir(), IL_INST_ID, ILIAS_VERSION_NUMERIC, ilFileUtils\makeDirParents(), processExporter(), and ilFileUtils\zip().
ilExport::exportObject | ( | string | $a_type, |
int | $a_id, | ||
string | $a_target_release = "" |
||
) |
Export an ILIAS object (the object type must be known by objDefinition)
string | $a_type | repository object type |
int | $a_id | id of object or entity that shoudl be exported |
string | $a_target_release | target release |
Definition at line 328 of file class.ilExport.php.
References _createExportDirectory(), _getExportDirectory(), ilObject\_lookupTitle(), ilFileUtils\delDir(), IL_CAL_UNIX, IL_INST_ID, ILIAS_VERSION_NUMERIC, ilFileUtils\makeDirParents(), processExporter(), and ilFileUtils\zip().
ilExport::getConfig | ( | string | $a_comp | ) |
Get configuration (note that configurations are optional, null may be returned!)
string | $a_comp | component (e.g. "Modules/Glossary") |
ilExportException | thronw if no config exists |
Definition at line 64 of file class.ilExport.php.
ilExport::processExporter | ( | string | $a_comp, |
string | $a_class, | ||
string | $a_entity, | ||
string | $a_target_release, | ||
array | $a_id = null |
||
) |
Process exporter.
string | $a_comp | e.g. "Modules/Forum" |
string | $a_class | |
string | $a_entity | e.g. "frm" |
string | $a_target_release | e.g. "5.1.0" |
string | $a_id | id of entity (e.g. object id) |
ilExportException |
Definition at line 488 of file class.ilExport.php.
References $id, $xml, IL_INST_ID, and ilFileUtils\makeDirParents().
Referenced by exportEntity(), and exportObject().
|
private |
Definition at line 49 of file class.ilExport.php.
|
private |
Definition at line 47 of file class.ilExport.php.
|
staticprivate |
Definition at line 46 of file class.ilExport.php.
string ilExport::$export_run_dir = '' |
Definition at line 29 of file class.ilExport.php.
|
protected |
Definition at line 31 of file class.ilExport.php.
Referenced by ilExportContainer\exportObject().
|
private |
Definition at line 50 of file class.ilExport.php.
|
staticprivate |
Definition at line 33 of file class.ilExport.php.