ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
|
Export. More...
Public Member Functions | |
__construct () | |
setExportDirInContainer (string $export_dir_in_container) | |
setPathInfo (ExportPathInfoInterface $export_path_info) | |
getExportDirInContainer () | |
getPathToComponentExpDirInContainer () | |
setExportDirectories (string $a_dir_relative, string $a_dir_absolute) | |
getRelativeExportDirectory () | |
getAbsoluteExportDirectory () | |
setExportWriter (ilExportHandlerConsumerExportWriterInterface $export_writer,) | |
getExportWriter () | |
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 | |
string | $dir_relative = "" |
string | $dir_absolute = "" |
ilLogger | $log |
ilExportHandlerConsumerExportWriterInterface | $export_writer |
string | $export_dir_in_container |
ExportPathInfoInterface | $export_path_info |
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") |
Export.
Definition at line 28 of file class.ilExport.php.
ilExport::__construct | ( | ) |
|
static |
Definition at line 322 of file class.ilExport.php.
References $DIC, $ilErr, _getExportDirectory(), ilObject\_lookupType(), and ilFileUtils\makeDirParents().
Referenced by ILIAS\Notes\Export\NotesHtmlExport\__construct(), ilObjBlogGUI\buildExportFile(), ilObjGlossary\createExportDirectory(), ilObjFileBasedLMGUI\exportHTML(), ilExportContainer\exportObject(), exportObject(), ILIAS\Export\ExportHandler\Info\Export\Handler\getLegacyExportRunDir(), ilHTLMExportOptionHTML\onExportOptionSelected(), and ilOrgUnitExporter\sendAndCreateSimpleExportFile().
|
static |
Generates an index.html file including links to all xml files included (for container exports)
Definition at line 345 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 220 of file class.ilExport.php.
References $DIC, ilObject\_lookupType(), and ilFileUtils\getDataDir().
Referenced by ILIAS\Notes\Export\NotesHtmlExport\__construct(), _createExportDirectory(), _getExportFiles(), ilExportContainer\addSubitems(), ilObjBlogGUI\buildExportFile(), ilSAHSEditGUI\executeCommand(), ilObjFileBasedLMGUI\exportHTML(), ilExportContainer\exportObject(), exportObject(), ilObjUser\exportPersonalData(), ilCmiXapiDataSet\getDependencies(), ilDclContentExporter\getExportContentPath(), ilObjGlossary\getExportDirectory(), ilObjQuestionPool\getExportDirectory(), ilDclExportTableGUI\getExportFiles(), ilScormAiccDataSet\getExtendedXmlRepresentation(), ilDataCollectionExportOptionsXLSX\getFiles(), ILIAS\Export\ExportHandler\Consumer\ExportOption\BasicLegacyHandler\getFiles(), ilMediaPoolExportOptionXMLMaster\getFiles(), ILIAS\Export\ExportHandler\Info\Export\Handler\getLegacyExportRunDir(), ilObjUser\getPersonalDataExportFile(), ILIAS\Wiki\Export\WikiHtmlExport\getUserExportFile(), ILIAS\Export\ExportHandler\Consumer\ExportOption\BasicLegacyHandler\onDeleteFiles(), ilDataCollectionExportOptionsXLSX\onDeleteFiles(), ilMediaPoolExportOptionXMLMasterNoMedia\onDeleteFiles(), ilMediaPoolExportOptionXMLMaster\onDeleteFiles(), ilMediaPoolExportOptionXMLMaster\onDownloadFiles(), ilMediaPoolExportOptionXMLMasterNoMedia\onDownloadFiles(), ILIAS\Export\ExportHandler\Consumer\ExportOption\BasicLegacyHandler\onDownloadFiles(), ilMediaPoolExportOptionXMLMasterNoMedia\onDownloadWithLink(), ilMediaPoolExportOptionXMLMaster\onDownloadWithLink(), ILIAS\Export\ExportHandler\Consumer\ExportOption\BasicLegacyHandler\onDownloadWithLink(), ilHTLMExportOptionHTML\onExportOptionSelected(), ilOrgUnitExporter\sendAndCreateSimpleExportFile(), ilObjUser\sendPersonalDataFile(), ILIAS\Notes\Export\NotesHtmlExport\zipPackage(), and ILIAS\Wiki\Export\BlogHtmlExport\zipPackage().
|
static |
int | $a_obj_id | |
string | array | $a_export_types | |
string | $a_obj_type |
Definition at line 267 of file class.ilExport.php.
References _getExportDirectory(), ilObject\_lookupType(), and ILIAS\Repository\int().
Referenced by _getLastExportFileDate(), _getLastExportFileInformation(), ilExportTableGUI\getExportFiles(), and ILIAS\Export\ExportHandler\Consumer\ExportOption\BasicLegacyHandler\getFiles().
|
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 180 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 198 of file class.ilExport.php.
References _getExportFiles(), null, 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 151 of file class.ilExport.php.
References $DIC, _getLastExportFileDate(), and ILIAS\Repository\int().
Referenced by ilSubItemSelectionTableGUI\__construct().
|
staticprotected |
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. "components/ILIAS/Style") |
Definition at line 484 of file class.ilExport.php.
References $c, $DIC, 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 401 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::getAbsoluteExportDirectory | ( | ) |
ilExport::getConfig | ( | string | $a_comp | ) |
Get configuration (note that configurations are optional, null may be returned!)
string | $a_comp | component (e.g. "components/ILIAS/Glossary") |
ilExportException | thronw if no config exists |
Definition at line 130 of file class.ilExport.php.
ilExport::getExportDirInContainer | ( | ) |
Definition at line 80 of file class.ilExport.php.
ilExport::getExportWriter | ( | ) |
Definition at line 119 of file class.ilExport.php.
References $export_writer.
ilExport::getPathToComponentExpDirInContainer | ( | ) |
Definition at line 90 of file class.ilExport.php.
ilExport::getRelativeExportDirectory | ( | ) |
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. "components/ILIAS/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 564 of file class.ilExport.php.
References $id, IL_INST_ID, and ilFileUtils\makeDirParents().
Referenced by exportEntity(), and exportObject().
ilExport::setExportDirectories | ( | string | $a_dir_relative, |
string | $a_dir_absolute | ||
) |
Definition at line 95 of file class.ilExport.php.
ilExport::setExportDirInContainer | ( | string | $export_dir_in_container | ) |
ilExport::setExportWriter | ( | ilExportHandlerConsumerExportWriterInterface | $export_writer | ) |
Definition at line 113 of file class.ilExport.php.
References $export_writer.
ilExport::setPathInfo | ( | ExportPathInfoInterface | $export_path_info | ) |
Definition at line 70 of file class.ilExport.php.
References $export_path_info.
|
private |
Definition at line 55 of file class.ilExport.php.
|
private |
Definition at line 53 of file class.ilExport.php.
|
protected |
Definition at line 32 of file class.ilExport.php.
Referenced by getAbsoluteExportDirectory().
|
protected |
Definition at line 31 of file class.ilExport.php.
Referenced by getRelativeExportDirectory().
|
protected |
Definition at line 36 of file class.ilExport.php.
Referenced by setExportDirInContainer().
|
staticprivate |
Definition at line 52 of file class.ilExport.php.
|
protected |
Definition at line 37 of file class.ilExport.php.
Referenced by setPathInfo().
string ilExport::$export_run_dir = '' |
Definition at line 30 of file class.ilExport.php.
|
protected |
Definition at line 35 of file class.ilExport.php.
Referenced by getExportWriter(), and setExportWriter().
|
protected |
Definition at line 34 of file class.ilExport.php.
Referenced by ilExportContainer\exportObject().
|
private |
Definition at line 56 of file class.ilExport.php.
|
staticprivate |
Definition at line 39 of file class.ilExport.php.