|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
Import class. More...
Inheritance diagram for ilImport:
Collaboration diagram for ilImport: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 | |
| validateXMLFiles (SplFileInfo $manifest_spl) | |
| checkStatuses (ilImportStatusHandlerCollectionInterface $import_status_collection) | |
| 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 |
| array | $entity_types = [] |
| ilXmlImporter | $importer = null |
| string | $comp = '' |
| string | $current_comp = '' |
| string | $entities = "" |
| string | $tmp_import_dir = "" |
| ilImportMapping | $mapping = null |
| array | $skip_entity = array() |
| array | $configs = array() |
| array | $skip_importer = [] |
| Archives | $archives |
| Filesystems | $filesystem |
| ilImportFactory | $import |
| ilImportStatusFactory | $import_status |
Import class.
Definition at line 38 of file class.ilImport.php.
| ilImport::__construct | ( | int | $a_target_id = 0 | ) |
Definition at line 57 of file class.ilImport.php.
References $DIC, and ILIAS\Repository\filesystem().
Here is the call graph for this function:| ilImport::addSkipEntity | ( | string | $a_component, |
| string | $a_entity, | ||
| bool | $skip = true |
||
| ) |
Add skip entity.
Definition at line 105 of file class.ilImport.php.
| ilImport::addSkipImporter | ( | string | $a_component, |
| bool | $skip = true |
||
| ) |
Definition at line 110 of file class.ilImport.php.
|
protected |
Definition at line 240 of file class.ilImport.php.
References ILIAS\Export\ImportStatus\FAILED, and ILIAS\Export\ImportHandler\File\XML\Manifest\toString.
Referenced by importObject(), and validateXMLFiles().
Here is the caller graph for this function:
|
protected |
Import repository object export file.
Definition at line 323 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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilImport::getConfig | ( | string | $a_comp | ) |
Get configuration (note that configurations are optional, null may be returned!)
Definition at line 73 of file class.ilImport.php.
|
final |
| ilImport::getMapping | ( | ) |
Definition at line 87 of file class.ilImport.php.
References $mapping.
Referenced by ilImportContainer\createDummy(), ilImportContainer\doImportObject(), doImportObject(), ilObjQuestionPoolGUI\importQuestionPoolWithValidManifest(), ilObjTestGUI\importVerifiedFileObject(), and processItemXml().
Here is the caller graph for this function:| ilImport::getTemporaryImportDir | ( | ) |
Get temporary import directory.
Definition at line 315 of file class.ilImport.php.
References $tmp_import_dir.
|
final |
Import entity.
Definition at line 118 of file class.ilImport.php.
References ILIAS\Export\ImportStatus\FAILED, ILIAS\Repository\filesystem(), ilFileUtils\ilTempnam(), importObject(), and ilFileUtils\moveUploadedFile().
Here is the call graph for this function:| ilImport::importFromDirectory | ( | string | $dir, |
| string | $a_type, | ||
| string | $a_comp | ||
| ) |
Definition at line 293 of file class.ilImport.php.
References doImportObject().
Here is the call graph for this function:
|
final |
Definition at line 249 of file class.ilImport.php.
References Vendor\Package\$e, checkStatuses(), doImportObject(), ILIAS\Repository\filesystem(), setTemporaryImportDir(), and validateXMLFiles().
Referenced by importEntity(), ilObjQuestionPoolGUI\importQuestionPoolWithValidManifest(), and ilObjTestGUI\importVerifiedFileObject().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 428 of file class.ilImport.php.
References getMapping().
Here is the call graph for this function:
|
final |
Definition at line 92 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 306 of file class.ilImport.php.
Referenced by importObject().
Here is the caller graph for this function:
|
protected |
Definition at line 175 of file class.ilImport.php.
References Vendor\Package\$e, checkStatuses(), and ILIAS\Export\ImportStatus\FAILED.
Referenced by importObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 52 of file class.ilImport.php.
|
protected |
Definition at line 44 of file class.ilImport.php.
Referenced by doImportObject().
|
protected |
Definition at line 50 of file class.ilImport.php.
|
protected |
Definition at line 45 of file class.ilImport.php.
|
protected |
Definition at line 46 of file class.ilImport.php.
|
protected |
Definition at line 42 of file class.ilImport.php.
Referenced by getEntityTypes().
|
protected |
Definition at line 53 of file class.ilImport.php.
|
protected |
Definition at line 54 of file class.ilImport.php.
|
protected |
Definition at line 55 of file class.ilImport.php.
|
protected |
Definition at line 43 of file class.ilImport.php.
Referenced by ilImportContainer\doImportObject(), and doImportObject().
|
protected |
Definition at line 40 of file class.ilImport.php.
|
protected |
Definition at line 48 of file class.ilImport.php.
Referenced by getMapping().
|
protected |
Definition at line 41 of file class.ilImport.php.
|
protected |
Definition at line 49 of file class.ilImport.php.
|
protected |
Definition at line 51 of file class.ilImport.php.
|
protected |
Definition at line 47 of file class.ilImport.php.
Referenced by getTemporaryImportDir().