ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Importer class for files. More...
Public Member Functions | |
__construct () | |
Constructor. More... | |
init () | |
Init. More... | |
setSurvey (ilObjSurvey $a_val) | |
Set current survey object (being imported). More... | |
getSurvey () | |
Get current survey object. More... | |
importXmlRepresentation ($a_entity, $a_id, $a_xml, $a_mapping) | |
Import XML. More... | |
![]() | |
__construct () | |
Constructor. More... | |
setImport ($a_val) | |
Set import. More... | |
getImport () | |
Get import. More... | |
init () | |
Init. More... | |
setInstallId ($a_val) | |
Set installation id. More... | |
getInstallId () | |
Get installation id. More... | |
setInstallUrl ($a_val) | |
Set installation url. More... | |
getInstallUrl () | |
Get installation url. More... | |
setSchemaVersion ($a_val) | |
Set schema version. More... | |
getSchemaVersion () | |
Get schema version. More... | |
setImportDirectory ($a_val) | |
Set import directory. More... | |
getImportDirectory () | |
Get import directory. More... | |
setSkipEntities ($a_val) | |
Set skip entities. More... | |
getSkipEntities () | |
Get skip entities. More... | |
exportedFromSameInstallation () | |
Is exporting and importing installation identical? More... | |
importXmlRepresentation ($a_entity, $a_id, $a_xml, $a_mapping) | |
Import xml representation. More... | |
finalProcessing ($a_mapping) | |
Final processing. More... | |
afterContainerImportProcessing (ilImportMapping $mapping) | |
Called after all container objects have been implemented. More... | |
Protected Member Functions | |
parseXmlFileNames () | |
Create qti and xml file name. More... | |
Protected Attributes | |
$log | |
$svy_log | |
![]() | |
$skip_entities = array() | |
$imp | |
Static Protected Attributes | |
static | $survey |
Importer class for files.
Definition at line 10 of file class.ilSurveyImporter.php.
ilSurveyImporter::__construct | ( | ) |
Constructor.
Definition at line 21 of file class.ilSurveyImporter.php.
References $DIC, and ILIAS\GlobalScreen\Provider\__construct().
ilSurveyImporter::getSurvey | ( | ) |
Get current survey object.
Definition at line 72 of file class.ilSurveyImporter.php.
ilSurveyImporter::importXmlRepresentation | ( | $a_entity, | |
$a_id, | |||
$a_xml, | |||
$a_mapping | |||
) |
Import XML.
$a_entity | ||
$a_id | ||
$a_xml | ||
ilImportMapping | $a_mapping |
Definition at line 89 of file class.ilSurveyImporter.php.
References $_SESSION, $GLOBALS, SurveyQuestion\_instanciateQuestion(), ilRTE\_replaceMediaObjectImageSrc(), ilObjMediaObject\_saveTempFileAsMediaObject(), ilObjMediaObject\_saveUsage(), ilXmlImporter\getImport(), ilObjectFactory\getInstanceByObjId(), ilXmlImporter\getSchemaVersion(), IL_INST_ID, parseXmlFileNames(), and setSurvey().
ilSurveyImporter::init | ( | ) |
Init.
Definition at line 45 of file class.ilSurveyImporter.php.
References ilLoggerFactory\getLogger().
|
protected |
Create qti and xml file name.
Definition at line 192 of file class.ilSurveyImporter.php.
References $GLOBALS, $xml, and ilXmlImporter\getImportDirectory().
Referenced by importXmlRepresentation().
ilSurveyImporter::setSurvey | ( | ilObjSurvey | $a_val | ) |
Set current survey object (being imported).
This is done statically, since the survey import uses multiple input files being processed for every survey and all of these need the current survey object (ilSurveyImporter is intantiated multiple times)
ilObjSurvey | $a_val | survey |
Definition at line 62 of file class.ilSurveyImporter.php.
Referenced by importXmlRepresentation().
|
protected |
Definition at line 15 of file class.ilSurveyImporter.php.
|
staticprotected |
Definition at line 32 of file class.ilSurveyImporter.php.
|
protected |
Definition at line 37 of file class.ilSurveyImporter.php.