ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |
__construct () | |
Default constructor. More... | |
getConfig ($a_comp) | |
Get configuration (note that configurations are optional, null may be returned!) More... | |
exportObject ($a_type, $a_id, $a_target_release="") | |
Export an ILIAS object (the object type must be known by objDefinition) More... | |
exportEntity ($a_entity, $a_id, $a_target_release, $a_component, $a_title, $a_export_dir, $a_type_for_file="") | |
Export an ILIAS entity. More... | |
processExporter ($a_comp, $a_class, $a_entity, $a_target_release, $a_id) | |
Process exporter. More... | |
Static Public Member Functions | |
static | _getValidExportSubItems ($a_ref_id) |
Get a list of subitems of a repository resource, that implement the export. More... | |
static | _getLastExportFileDate ($a_obj_id, $a_type="", $a_obj_type="") |
Get date of last export file. More... | |
static | _getLastExportFileInformation ($a_obj_id, $a_type="", $a_obj_type="") |
Get last export file information. More... | |
static | _getExportDirectory ($a_obj_id, $a_type="xml", $a_obj_type="", $a_entity="") |
Get export directory for an repository object. More... | |
static | _getExportFiles ($a_obj_id, $a_export_types="", $a_obj_type="") |
Get Export Files for a repository object. More... | |
static | _createExportDirectory ($a_obj_id, $a_export_type="xml", $a_obj_type="") |
static | _generateIndexFile ($a_filename, $a_obj_id, $a_files, $a_type="") |
Generates an index.html file including links to all xml files included (for container exports) More... | |
Static Public Attributes | |
static | $new_file_structure = array('cat','exc','crs','sess','file','grp','frm', 'usr', 'catr', 'crsr', 'grpr') |
static | $export_implementer = array("tst", "lm", "glo", "sahs") |
Protected Attributes | |
$log | |
$configs = array() | |
Definition at line 13 of file class.ilExport.php.
ilExport::__construct | ( | ) |
Default constructor.
Definition at line 31 of file class.ilExport.php.
References ilLoggerFactory\getLogger().
|
static |
$a_obj_id | ||
string | $a_export_type | |
string | $a_obj_type |
Definition at line 241 of file class.ilExport.php.
References $ilErr, _getExportDirectory(), ilObject\_lookupType(), and ilUtil\makeDirParents().
Referenced by ilPortfolioHTMLExport\buildExportFile(), ilWikiHTMLExport\buildExportFile(), ilObjBlogGUI\buildExportFile(), ilObjGlossary\createExportDirectory(), ilObjFileBasedLMGUI\exportHTML(), ilExportContainer\exportObject(), exportObject(), and ilOrgUnitExporter\sendAndCreateSimpleExportFile().
|
static |
Generates an index.html file including links to all xml files included (for container exports)
Definition at line 259 of file class.ilExport.php.
References $a_type, $file, $lng, ilObject\_lookupTitle(), ilObject\_lookupType(), date, ilUtil\getStyleSheetLocation(), and time.
Referenced by ilCourseArchives\addXML().
|
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) |
Definition at line 137 of file class.ilExport.php.
References $a_type, $GLOBALS, ilFileSystemStorage\_createPathFromId(), ilObject\_lookupType(), array, and ilUtil\getDataDir().
Referenced by ilCourseArchives\__addZipFiles(), _createExportDirectory(), _getExportFiles(), ilExportContainer\addSubitems(), ilPortfolioHTMLExport\buildExportFile(), ilWikiHTMLExport\buildExportFile(), ilObjBlogGUI\buildExportFile(), ilExportGUI\delete(), ilExportGUI\download(), ilSAHSEditGUI\executeCommand(), ilObjFileBasedLMGUI\exportHTML(), ilExportContainer\exportObject(), exportObject(), ilObjUser\exportPersonalData(), ilDclContentExporter\getExportContentPath(), ilObjGlossary\getExportDirectory(), ilObjQuestionPool\getExportDirectory(), ilDclExportTableGUI\getExportFiles(), ilScormAiccDataSet\getExtendedXmlRepresentation(), ilObjUser\getPersonalDataExportFile(), ilWikiHTMLExport\getUserExportFile(), ilOrgUnitExporter\sendAndCreateSimpleExportFile(), and ilObjUser\sendPersonalDataFile().
|
static |
Get Export Files for a repository object.
Definition at line 172 of file class.ilExport.php.
References $file, $GLOBALS, _getExportDirectory(), ilObject\_lookupType(), and array.
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 99 of file class.ilExport.php.
References $a_type, $files, _getExportFiles(), and ilUtil\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 117 of file class.ilExport.php.
References $a_type, $files, _getExportFiles(), and ilUtil\sortArray().
Referenced by ilCourseArchives\__addZipFiles().
|
static |
Get a list of subitems of a repository resource, that implement the export.
Includes also information on last export file.
Definition at line 72 of file class.ilExport.php.
References _getLastExportFileDate(), and array.
Referenced by ilSubItemSelectionTableGUI\__construct().
ilExport::exportEntity | ( | $a_entity, | |
$a_id, | |||
$a_target_release, | |||
$a_component, | |||
$a_title, | |||
$a_export_dir, | |||
$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 405 of file class.ilExport.php.
References $success, $tpl, array, ilUtil\delDir(), ILIAS_VERSION_NUMERIC, ilUtil\makeDirParents(), processExporter(), time, and ilUtil\zip().
ilExport::exportObject | ( | $a_type, | |
$a_id, | |||
$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 321 of file class.ilExport.php.
References $a_type, $success, _createExportDirectory(), _getExportDirectory(), ilObject\_lookupTitle(), array, ilUtil\delDir(), IL_CAL_UNIX, ILIAS_VERSION_NUMERIC, ilUtil\makeDirParents(), processExporter(), time, and ilUtil\zip().
ilExport::getConfig | ( | $a_comp | ) |
Get configuration (note that configurations are optional, null may be returned!)
string | $a_comp | component (e.g. "Modules/Glossary") |
ilExportException |
Definition at line 43 of file class.ilExport.php.
ilExport::processExporter | ( | $a_comp, | |
$a_class, | |||
$a_entity, | |||
$a_target_release, | |||
$a_id | |||
) |
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 479 of file class.ilExport.php.
References $success, array, and ilUtil\makeDirParents().
Referenced by exportEntity(), and exportObject().
|
protected |
Definition at line 25 of file class.ilExport.php.
|
static |
Definition at line 23 of file class.ilExport.php.
|
protected |
Definition at line 18 of file class.ilExport.php.
|
static |
Definition at line 20 of file class.ilExport.php.