ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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... | |
Public Member Functions inherited from ilXmlImporter | |
__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 | |
Protected Attributes inherited from ilXmlImporter | |
$skip_entities = array() | |
$imp | |
Static Protected Attributes | |
static | $survey |
ilSurveyImporter::__construct | ( | ) |
ilSurveyImporter::getSurvey | ( | ) |
Get current survey object.
Definition at line 76 of file class.ilSurveyImporter.php.
ilSurveyImporter::importXmlRepresentation | ( | $a_entity, | |
$a_id, | |||
$a_xml, | |||
$a_mapping | |||
) |
Import XML.
Definition at line 87 of file class.ilSurveyImporter.php.
References $_SESSION, $GLOBALS, $parser, SurveyQuestion\_instanciateQuestion(), ilRTE\_replaceMediaObjectImageSrc(), ilObjMediaObject\_saveTempFileAsMediaObject(), ilObjMediaObject\_saveUsage(), League\Flysystem\getConfig(), ilXmlImporter\getImport(), ilObjectFactory\getInstanceByObjId(), ilXmlImporter\getSchemaVersion(), parseXmlFileNames(), and setSurvey().
ilSurveyImporter::init | ( | ) |
Init.
Definition at line 48 of file class.ilSurveyImporter.php.
References ilLoggerFactory\getLogger().
|
protected |
Create qti and xml file name.
Definition at line 195 of file class.ilSurveyImporter.php.
References $GLOBALS, $xml, array, 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 66 of file class.ilSurveyImporter.php.
Referenced by importXmlRepresentation().
|
protected |
Definition at line 18 of file class.ilSurveyImporter.php.
|
staticprotected |
Definition at line 35 of file class.ilSurveyImporter.php.
|
protected |
Definition at line 40 of file class.ilSurveyImporter.php.