|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Export. More...
Inheritance diagram for ilExport:
Collaboration diagram for ilExport: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") |
Export.
Definition at line 25 of file class.ilExport.php.
| ilExport::__construct | ( | ) |
|
static |
Definition at line 252 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Generates an index.html file including links to all xml files included (for container exports)
Definition at line 274 of file class.ilExport.php.
References $DIC, Vendor\Package\$f, $lng, ilObject\_lookupTitle(), ilObject\_lookupType(), and ilUtil\getStyleSheetLocation().
Here is the call graph for this function:
|
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 151 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(), ilDclContentExporter\getExportContentPath(), ilObjGlossary\getExportDirectory(), ilObjQuestionPool\getExportDirectory(), ilDclExportTableGUI\getExportFiles(), ilQuestionPoolExportTableGUI\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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| int | $a_obj_id | |
| string | array | $a_export_types | |
| string | $a_obj_type |
Definition at line 197 of file class.ilExport.php.
References _getExportDirectory(), ilObject\_lookupType(), and ILIAS\Repository\int().
Referenced by _getLastExportFileDate(), _getLastExportFileInformation(), ilExportTableGUI\getExportFiles(), and ilObjGlossary\getExportFiles().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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 113 of file class.ilExport.php.
References _getExportFiles(), and ilArrayUtil\sortArray().
Referenced by _getValidExportSubItems().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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 130 of file class.ilExport.php.
References _getExportFiles(), and ilArrayUtil\sortArray().
Here is the call graph for this function:
|
static |
Get a list of subitems of a repository resource, that implement the export.
Includes also information on last export file.
Definition at line 85 of file class.ilExport.php.
References $DIC, _getLastExportFileDate(), and ILIAS\Repository\int().
Referenced by ilSubItemSelectionTableGUI\__construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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. "Services/Style") |
Definition at line 411 of file class.ilExport.php.
References Vendor\Package\$c, $DIC, ilFileUtils\delDir(), IL_INST_ID, ILIAS_VERSION_NUMERIC, ilFileUtils\makeDirParents(), processExporter(), and ilFileUtils\zip().
Here is the call graph for this function:| 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 329 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().
Here is the call graph for this function:| 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 65 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 489 of file class.ilExport.php.
References $id, IL_INST_ID, and ilFileUtils\makeDirParents().
Referenced by exportEntity(), and exportObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 50 of file class.ilExport.php.
|
private |
Definition at line 48 of file class.ilExport.php.
|
staticprivate |
Definition at line 47 of file class.ilExport.php.
| string ilExport::$export_run_dir = '' |
Definition at line 30 of file class.ilExport.php.
|
protected |
Definition at line 32 of file class.ilExport.php.
Referenced by ilExportContainer\exportObject().
|
private |
Definition at line 51 of file class.ilExport.php.
|
staticprivate |
Definition at line 34 of file class.ilExport.php.