/**
  * Get xml representation
  *
  * @param	string		entity
  * @param	string		schema version
  * @param	string		id
  * @return	string		xml string
  */
 public function getXmlRepresentation($a_entity, $a_schema_version, $a_id)
 {
     include_once './Modules/TestQuestionPool/classes/class.ilObjQuestionPool.php';
     $qpl = new ilObjQuestionPool($a_id, false);
     include_once "./Modules/TestQuestionPool/classes/class.ilQuestionpoolExport.php";
     $qpl_exp = new ilQuestionpoolExport($qpl, 'xml');
     $zip = $qpl_exp->buildExportFile();
     $GLOBALS['ilLog']->write(__METHOD__ . ': Created zip file ' . $zip);
 }
 function createExportExcel()
 {
     global $rbacsystem;
     if ($rbacsystem->checkAccess("write", $_GET['ref_id'])) {
         include_once "./Modules/TestQuestionPool/classes/class.ilQuestionpoolExport.php";
         $question_ids =& $this->object->getAllQuestionIds();
         $qpl_exp = new ilQuestionpoolExport($this->object, 'xls', $question_ids);
         $qpl_exp->buildExportFile();
         $this->ctrl->redirectByClass("ilquestionpoolexportgui", "");
     }
 }