ILIAS
Release_4_4_x_branch Revision 61816
|
Public Member Functions | |
__construct () | |
Default constructor. | |
_getExportFiles ($a_obj_id, $a_export_types="", $a_obj_type="") | |
Get Export Files for a repository object. | |
_createExportDirectory ($a_obj_id, $a_export_type="xml", $a_obj_type="") | |
Create export directory. | |
_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) | |
exportObject ($a_type, $a_id, $a_target_release) | |
Export an ILIAS object (the object type must be known by objDefinition) | |
exportEntity ($a_entity, $a_id, $a_target_release, $a_component, $a_title, $a_export_dir, $a_type_for_file="") | |
Export an ILIAS entity. | |
processExporter ($a_comp, $a_class, $a_entity, $a_target_release, $a_id) | |
Process exporter. |
Static Public Member Functions | |
static | _getValidExportSubItems ($a_ref_id) |
Get a list of subitems of a repository resource, that implement the export. | |
static | _getLastExportFileDate ($a_obj_id, $a_type="", $a_obj_type="") |
Get date of last export file. | |
static | _getLastExportFileInformation ($a_obj_id, $a_type="", $a_obj_type="") |
Get last export file information. | |
static | _getExportDirectory ($a_obj_id, $a_type="xml", $a_obj_type="", $a_entity="") |
Get export directory for an repository object. |
Static Public Attributes | |
static | $new_file_structure = array('cat','exc','crs','sess','file','grp','frm', 'usr', 'catr', 'crsr') |
static | $export_implementer = array("tst", "lm", "glo") |
Definition at line 13 of file class.ilExport.php.
ilExport::__construct | ( | ) |
Default constructor.
Definition at line 24 of file class.ilExport.php.
Referenced by ilExportContainer\__construct().
ilExport::_createExportDirectory | ( | $a_obj_id, | |
$a_export_type = "xml" , |
|||
$a_obj_type = "" |
|||
) |
Create export directory.
Definition at line 199 of file class.ilExport.php.
References $ilErr, _getExportDirectory(), ilObject\_lookupType(), and ilUtil\makeDirParents().
Referenced by ilWikiHTMLExport\buildExportFile(), ilPortfolioHTMLExport\buildExportFile(), ilObjBlogGUI\buildExportFile(), ilObjGlossary\createExportDirectory(), ilObjFileBasedLMGUI\exportHTML(), ilExportContainer\exportObject(), exportObject(), and ilOrgUnitExporter\sendAndCreateSimpleExportFile().
ilExport::_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)
Definition at line 217 of file class.ilExport.php.
References $file, $lng, ilObject\_lookupTitle(), ilObject\_lookupType(), and ilUtil\getStyleSheetLocation().
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 99 of file class.ilExport.php.
References $GLOBALS, ilFileSystemStorage\_createPathFromId(), ilObject\_lookupType(), and ilUtil\getDataDir().
Referenced by ilCourseArchives\__addZipFiles(), _createExportDirectory(), _getExportFiles(), ilExportContainer\addSubitems(), ilWikiHTMLExport\buildExportFile(), ilPortfolioHTMLExport\buildExportFile(), ilObjBlogGUI\buildExportFile(), ilExportGUI\delete(), ilExportGUI\download(), ilObjFileBasedLMGUI\exportHTML(), ilExportContainer\exportObject(), exportObject(), ilObjUser\exportPersonalData(), ilObjGlossary\getExportDirectory(), ilObjUser\getPersonalDataExportFile(), ilOrgUnitExporter\sendAndCreateSimpleExportFile(), and ilObjUser\sendPersonalDataFile().
ilExport::_getExportFiles | ( | $a_obj_id, | |
$a_export_types = "" , |
|||
$a_obj_type = "" |
|||
) |
Get Export Files for a repository object.
Definition at line 134 of file class.ilExport.php.
References $file, $GLOBALS, _getExportDirectory(), and ilObject\_lookupType().
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 61 of file class.ilExport.php.
References _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 79 of file class.ilExport.php.
References _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 34 of file class.ilExport.php.
References _getLastExportFileDate().
Referenced by ilSubItemSelectionTableGUI\ilSubItemSelectionTableGUI().
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 353 of file class.ilExport.php.
References $success, $tpl, ilUtil\delDir(), ilUtil\makeDirParents(), processExporter(), 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 |
Reimplemented in ilExportContainer.
Definition at line 279 of file class.ilExport.php.
References $success, $tpl, _createExportDirectory(), _getExportDirectory(), ilObject\_lookupTitle(), ilUtil\delDir(), IL_CAL_UNIX, ilUtil\makeDirParents(), processExporter(), and ilUtil\zip().
ilExport::processExporter | ( | $a_comp, | |
$a_class, | |||
$a_entity, | |||
$a_target_release, | |||
$a_id | |||
) |
Process exporter.
@return |
Definition at line 415 of file class.ilExport.php.
References $success, exit, and ilUtil\makeDirParents().
Referenced by exportEntity(), and exportObject().
|
static |
Definition at line 18 of file class.ilExport.php.
|
static |
Definition at line 15 of file class.ilExport.php.