/** * Get xml representation * * @param string entity * @param string target release * @param string id * @return string xml string */ public function getXmlRepresentation($a_entity, $a_schema_version, $a_id) { $refs = ilObject::_getAllReferences($a_id); $sql_ref_id = current($refs); include_once './Modules/SurveyQuestionPool/classes/class.ilObjSurveyQuestionPool.php'; $spl = new ilObjSurveyQuestionPool($a_id, false); $spl->loadFromDb(); include_once "./Modules/SurveyQuestionPool/classes/class.ilSurveyQuestionpoolExport.php"; $spl_exp = new ilSurveyQuestionpoolExport($spl, 'xml'); $zip = $spl_exp->buildExportFile(); $GLOBALS['ilLog']->write(__METHOD__ . ': Created zip file ' . $zip); }