42 $maps = $a_mapping->getMappingsOfEntity(
"Modules/TestQuestionPool",
"qpl");
44 foreach ($maps as $old => $new) {
45 if ($old !=
"new_id" && (
int) $old > 0) {
46 $newQstIds = $a_mapping->getMapping(
"Services/AssessmentQuestion",
"qst", $old);
48 if ($newQstIds !==
false) {
49 $qstIds = explode(
":", $newQstIds);
50 foreach ($qstIds as $qId) {
51 $qstInstance = $DIC->question()->getQuestionInstance($qId);
52 $qstInstance->setParentId($new);
57 $qstMappings = $a_mapping->getMappingsOfEntity(
'Services/AssessmentQuestion',
'qst');
59 foreach ($qstMappings as $oldQstId => $newQstId) {
finalProcessing($a_mapping)
Final processing.
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)