ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Import class. More...
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... | |
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() | |
ilImport::__construct | ( | $a_target_id = 0 | ) |
Constructor.
int | id of parent container |
Definition at line 33 of file class.ilImport.php.
References ilLoggerFactory\getLogger().
ilImport::addSkipEntity | ( | $a_component, | |
$a_entity, | |||
$skip = true |
|||
) |
Add skip entity.
string | $a_val | component |
string | $a_val | entity |
Definition at line 107 of file class.ilImport.php.
ilImport::afterEntityTypes | ( | ) |
After entity types are parsed.
Definition at line 136 of file class.ilImport.php.
References getCurrentDataset().
|
protected |
Import repository object export file.
string | absolute filename of temporary upload file |
Definition at line 247 of file class.ilImport.php.
References $a_type, $parser, $success, ilObject\_lookupType(), ilObject\_writeImportId(), array, getMapping(), and ilManifestFileNotFoundImportException\setManifestDir().
Referenced by importFromDirectory(), and importObject().
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 48 of file class.ilImport.php.
ilImport::getCurrentDataset | ( | ) |
Get currrent dataset.
Definition at line 128 of file class.ilImport.php.
Referenced by afterEntityTypes(), and importRecord().
|
final |
ilImport::getMapping | ( | ) |
Get mapping object.
Definition at line 76 of file class.ilImport.php.
References $mapping.
Referenced by ilImportContainer\createDummy(), ilImportContainer\doImportObject(), doImportObject(), and processItemXml().
ilImport::getTemporaryImportDir | ( | ) |
Get temporary import directory.
Definition at line 237 of file class.ilImport.php.
References $tmp_import_dir.
|
final |
Import entity.
Definition at line 155 of file class.ilImport.php.
References importObject().
ilImport::importFromDirectory | ( | $dir, | |
$a_type, | |||
$a_comp | |||
) |
Import from directory.
Definition at line 210 of file class.ilImport.php.
References $a_type, $ret, and doImportObject().
|
final |
Import repository object export file.
string | absolute filename of temporary upload file |
Definition at line 167 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().
ilImport::importRecord | ( | $a_entity, | |
$a_types, | |||
$a_record | |||
) |
After entity types are parsed.
Definition at line 146 of file class.ilImport.php.
References getCurrentDataset().
ilImport::processItemXml | ( | $a_entity, | |
$a_schema_version, | |||
$a_id, | |||
$a_xml, | |||
$a_install_id, | |||
$a_install_url | |||
) |
Process item xml.
ilObjectDefinition $objDefinition
Definition at line 345 of file class.ilImport.php.
References getMapping().
ilImport::setCurrentDataset | ( | $a_val | ) |
Set currrent dataset.
object | currrent dataset |
Definition at line 117 of file class.ilImport.php.
|
final |
|
protected |
Set temporary import directory.
string | $a_val | temporary import directory (used to unzip and read import) |
Definition at line 227 of file class.ilImport.php.
Referenced by importObject().
|
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 21 of file class.ilImport.php.
Referenced by getTemporaryImportDir().