Пример #1
0
 /**
  * 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)
 {
     include_once './Modules/Glossary/classes/class.ilObjGlossary.php';
     $glo = new ilObjGlossary($a_id, false);
     include_once './Modules/Glossary/classes/class.ilGlossaryExport.php';
     $exp = new ilGlossaryExport($glo, 'xml');
     $zip = $exp->buildExportFile();
 }
Пример #2
0
 /**
  * Get zipped xml file for glossary.
  */
 function getXMLZip()
 {
     include_once "./Modules/Glossary/classes/class.ilGlossaryExport.php";
     $glo_exp = new ilGlossaryExport($this);
     return $glo_exp->buildExportFile();
 }
Пример #3
0
 /**
  * create html package
  */
 function exportHTML()
 {
     require_once "./Modules/Glossary/classes/class.ilGlossaryExport.php";
     $glo_exp = new ilGlossaryExport($this->object, "html");
     $glo_exp->buildExportFile();
     //echo $this->tpl->get();
     $this->ctrl->redirectByClass("ilexportgui", "");
 }