ILIAS
release_8 Revision v8.23
|
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 (int $a_target_id=0) | |
getConfig (string $a_comp) | |
Get configuration (note that configurations are optional, null may be returned!) More... | |
getMapping () | |
setEntityTypes (array $a_val) | |
getEntityTypes () | |
addSkipEntity (string $a_component, string $a_entity, bool $skip=true) | |
Add skip entity. More... | |
addSkipImporter (string $a_component, bool $skip=true) | |
importEntity (string $a_tmp_file, string $a_filename, string $a_entity, string $a_component, bool $a_copy_file=false) | |
Import entity. More... | |
importObject (?object $a_new_obj, string $a_tmp_file, string $a_filename, string $a_type, string $a_comp="", bool $a_copy_file=false) | |
importFromDirectory (string $dir, string $a_type, string $a_comp) | |
getTemporaryImportDir () | |
Get temporary import directory. More... | |
processItemXml (string $a_entity, string $a_schema_version, string $a_id, string $a_xml, string $a_install_id, string $a_install_url) | |
Process item xml. More... | |
Protected Member Functions | |
setTemporaryImportDir (string $a_val) | |
Set temporary import directory. More... | |
doImportObject (string $dir, string $a_type, string $a_component="", string $a_tmpdir="") | |
Import repository object export file. More... | |
Protected Attributes | |
ilLogger | $log |
ilObjectDefinition | $objDefinition |
string | $install_id = "" |
string | $install_url = "" |
string | $entities = "" |
string | $tmp_import_dir = "" |
ilImportMapping | $mapping = null |
array | $skip_entity = array() |
array | $configs = array() |
array | $skip_importer = [] |
Private Attributes | |
array | $entity_types = [] |
ilXmlImporter | $importer = null |
string | $comp = '' |
string | $current_comp = '' |
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 Import class
Definition at line 25 of file class.ilImport.php.
ilImport::__construct | ( | int | $a_target_id = 0 | ) |
Definition at line 44 of file class.ilImport.php.
References $DIC.
ilImport::addSkipEntity | ( | string | $a_component, |
string | $a_entity, | ||
bool | $skip = true |
||
) |
Add skip entity.
Definition at line 91 of file class.ilImport.php.
ilImport::addSkipImporter | ( | string | $a_component, |
bool | $skip = true |
||
) |
Definition at line 96 of file class.ilImport.php.
|
protected |
Import repository object export file.
Definition at line 177 of file class.ilImport.php.
References $comp, Vendor\Package\$e, $importer, ilObject\_lookupType(), ilObject\_writeImportId(), getMapping(), ILIAS\Repository\int(), and ilXmlImporter\setImportDirectory().
Referenced by importFromDirectory(), and importObject().
ilImport::getConfig | ( | string | $a_comp | ) |
Get configuration (note that configurations are optional, null may be returned!)
Definition at line 57 of file class.ilImport.php.
|
final |
ilImport::getMapping | ( | ) |
Definition at line 73 of file class.ilImport.php.
References $mapping.
Referenced by ilImportContainer\createDummy(), ilImportContainer\doImportObject(), doImportObject(), ilObjQuestionPoolGUI\importVerifiedFileObject(), ilObjTestGUI\importVerifiedFileObject(), and processItemXml().
ilImport::getTemporaryImportDir | ( | ) |
Get temporary import directory.
Definition at line 169 of file class.ilImport.php.
References $tmp_import_dir.
|
final |
Import entity.
Definition at line 104 of file class.ilImport.php.
References importObject().
ilImport::importFromDirectory | ( | string | $dir, |
string | $a_type, | ||
string | $a_comp | ||
) |
Definition at line 147 of file class.ilImport.php.
References doImportObject().
|
final |
Definition at line 114 of file class.ilImport.php.
References ilFileUtils\delDir(), doImportObject(), ilFileUtils\ilTempnam(), ilFileUtils\makeDir(), ilFileUtils\moveUploadedFile(), setTemporaryImportDir(), and ilFileUtils\unzip().
Referenced by importEntity(), and ilObjQuestionPoolGUI\importVerifiedFileObject().
ilImport::processItemXml | ( | string | $a_entity, |
string | $a_schema_version, | ||
string | $a_id, | ||
string | $a_xml, | ||
string | $a_install_id, | ||
string | $a_install_url | ||
) |
Process item xml.
Definition at line 282 of file class.ilImport.php.
References getMapping().
|
final |
Definition at line 78 of file class.ilImport.php.
|
protected |
Set temporary import directory.
string | $a_val | temporary import directory (used to unzip and read import) |
Definition at line 160 of file class.ilImport.php.
Referenced by importObject().
|
private |
Definition at line 32 of file class.ilImport.php.
Referenced by doImportObject().
|
protected |
Definition at line 41 of file class.ilImport.php.
|
private |
Definition at line 33 of file class.ilImport.php.
|
protected |
Definition at line 36 of file class.ilImport.php.
|
private |
Definition at line 30 of file class.ilImport.php.
Referenced by getEntityTypes().
|
private |
Definition at line 31 of file class.ilImport.php.
Referenced by ilImportContainer\doImportObject(), and doImportObject().
|
protected |
Definition at line 34 of file class.ilImport.php.
|
protected |
Definition at line 35 of file class.ilImport.php.
|
protected |
Definition at line 27 of file class.ilImport.php.
|
protected |
Definition at line 39 of file class.ilImport.php.
Referenced by getMapping().
|
protected |
Definition at line 28 of file class.ilImport.php.
|
protected |
Definition at line 40 of file class.ilImport.php.
|
protected |
Definition at line 42 of file class.ilImport.php.
|
protected |
Definition at line 37 of file class.ilImport.php.
Referenced by getTemporaryImportDir().