|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Import class. More...
Inheritance diagram for ilImport:
Collaboration diagram for ilImport:Public Member Functions | |
| __construct ($a_target_id=0) | |
| Constructor. More... | |
| getConfig ($a_comp) | |
| Get configuration (note that configurations are optional, null may be returned!) More... | |
| getMapping () | |
| Get mapping object. More... | |
| setEntityTypes ($a_val) | |
| Set entity types. More... | |
| getEntityTypes () | |
| Get entity types. More... | |
| addSkipEntity ($a_component, $a_entity, $skip=true) | |
| Add skip entity. More... | |
| addSkipImporter ($a_component, $skip=true) | |
| Add skip entity. More... | |
| setCurrentDataset ($a_val) | |
| Set currrent dataset. More... | |
| getCurrentDataset () | |
| Get currrent dataset. More... | |
| afterEntityTypes () | |
| After entity types are parsed. More... | |
| importRecord ($a_entity, $a_types, $a_record) | |
| After entity types are parsed. More... | |
| importEntity ( $a_tmp_file, $a_filename, $a_entity, $a_component, $a_copy_file=false) | |
| Import entity. More... | |
| importObject ( $a_new_obj, $a_tmp_file, $a_filename, $a_type, $a_comp="", $a_copy_file=false) | |
| Import repository object export file. More... | |
| importFromDirectory ($dir, $a_type, $a_comp) | |
| Import from directory. More... | |
| getTemporaryImportDir () | |
| Get temporary import directory. More... | |
| processItemXml ($a_entity, $a_schema_version, $a_id, $a_xml, $a_install_id, $a_install_url) | |
| Process item xml. More... | |
Protected Member Functions | |
| setTemporaryImportDir ($a_val) | |
| Set temporary import directory. More... | |
| doImportObject ($dir, $a_type, $a_component="", $a_tmpdir="") | |
| Import repository object export file. More... | |
Protected Attributes | |
| $log | |
| $install_id = "" | |
| $install_url = "" | |
| $entities = "" | |
| $tmp_import_dir = "" | |
| $mapping = null | |
| $skip_entity = array() | |
| $configs = array() | |
| $skip_importer = [] | |
| ilImport::__construct | ( | $a_target_id = 0 | ) |
Constructor.
| int | id of parent container |
Reimplemented in ilImportContainer.
Definition at line 35 of file class.ilImport.php.
References ilLoggerFactory\getLogger().
Here is the call graph for this function:| ilImport::addSkipEntity | ( | $a_component, | |
| $a_entity, | |||
$skip = true |
|||
| ) |
Add skip entity.
| string | $a_val | component |
| string | $a_val | entity |
Definition at line 101 of file class.ilImport.php.
| ilImport::addSkipImporter | ( | $a_component, | |
$skip = true |
|||
| ) |
Add skip entity.
| string | $a_val | component |
| string | $a_val | entity |
Definition at line 112 of file class.ilImport.php.
| ilImport::afterEntityTypes | ( | ) |
After entity types are parsed.
Definition at line 141 of file class.ilImport.php.
References getCurrentDataset().
Here is the call graph for this function:
|
protected |
Import repository object export file.
| string | absolute filename of temporary upload file |
Reimplemented in ilImportContainer.
Definition at line 256 of file class.ilImport.php.
References $a_type, Vendor\Package\$e, $parser, $success, ilObject\_lookupType(), ilObject\_writeImportId(), and getMapping().
Referenced by importFromDirectory(), and importObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilImport::getConfig | ( | $a_comp | ) |
Get configuration (note that configurations are optional, null may be returned!)
| string | $a_comp | component (e.g. "Modules/Glossary") |
| ilImportException |
Definition at line 50 of file class.ilImport.php.
| ilImport::getCurrentDataset | ( | ) |
Get currrent dataset.
Definition at line 133 of file class.ilImport.php.
Referenced by afterEntityTypes(), and importRecord().
Here is the caller graph for this function:
|
final |
Get entity types.
Definition at line 90 of file class.ilImport.php.
| ilImport::getMapping | ( | ) |
Get mapping object.
Definition at line 70 of file class.ilImport.php.
References $mapping.
Referenced by ilImportContainer\createDummy(), doImportObject(), ilImportContainer\doImportObject(), and processItemXml().
Here is the caller graph for this function:| ilImport::getTemporaryImportDir | ( | ) |
Get temporary import directory.
Definition at line 246 of file class.ilImport.php.
References $tmp_import_dir.
|
final |
Import entity.
Definition at line 160 of file class.ilImport.php.
References importObject().
Here is the call graph for this function:| ilImport::importFromDirectory | ( | $dir, | |
| $a_type, | |||
| $a_comp | |||
| ) |
Import from directory.
return
Definition at line 220 of file class.ilImport.php.
References $a_type, $ret, and doImportObject().
Here is the call graph for this function:
|
final |
Import repository object export file.
| string | absolute filename of temporary upload file |
Definition at line 176 of file class.ilImport.php.
References $a_type, $ret, ilUtil\delDir(), doImportObject(), ilUtil\ilTempnam(), ilUtil\makeDir(), ilUtil\moveUploadedFile(), setTemporaryImportDir(), and ilUtil\unzip().
Referenced by importEntity().
Here is the call graph for this function:
Here is the caller graph for this function:| ilImport::importRecord | ( | $a_entity, | |
| $a_types, | |||
| $a_record | |||
| ) |
After entity types are parsed.
Definition at line 151 of file class.ilImport.php.
References getCurrentDataset().
Here is the call graph for this function:| ilImport::processItemXml | ( | $a_entity, | |
| $a_schema_version, | |||
| $a_id, | |||
| $a_xml, | |||
| $a_install_id, | |||
| $a_install_url | |||
| ) |
Process item xml.
@global ilObjectDefinition $objDefinition
Definition at line 358 of file class.ilImport.php.
References $DIC, and getMapping().
Here is the call graph for this function:| ilImport::setCurrentDataset | ( | $a_val | ) |
Set currrent dataset.
| object | currrent dataset |
Definition at line 122 of file class.ilImport.php.
|
final |
Set entity types.
| array | entity types |
Definition at line 80 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 236 of file class.ilImport.php.
Referenced by importObject().
Here is the caller graph for this function:
|
protected |
Definition at line 25 of file class.ilImport.php.
|
protected |
Definition at line 20 of file class.ilImport.php.
|
protected |
Definition at line 18 of file class.ilImport.php.
|
protected |
Definition at line 19 of file class.ilImport.php.
|
protected |
Definition at line 16 of file class.ilImport.php.
|
protected |
Definition at line 23 of file class.ilImport.php.
Referenced by getMapping().
|
protected |
Definition at line 24 of file class.ilImport.php.
|
protected |
Definition at line 27 of file class.ilImport.php.
|
protected |
Definition at line 21 of file class.ilImport.php.
Referenced by getTemporaryImportDir().