/**
  * 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);
 }
 /**
  * create export file
  */
 public function createExportFileObject($questions = null)
 {
     global $rbacsystem;
     if ($rbacsystem->checkAccess("write", $this->ref_id)) {
         include_once "./Modules/SurveyQuestionPool/classes/class.ilSurveyQuestionpoolExport.php";
         $survey_exp = new ilSurveyQuestionpoolExport($this->object);
         $survey_exp->buildExportFile($questions);
         $this->ctrl->redirect($this, "export");
     } else {
         ilUtil::sendInfo("cannot_export_questionpool");
     }
 }