/** * export page objects to xml (see ilias_co.dtd) * * @param object $a_xml_writer ilXmlWriter object that receives the * xml data */ function exportXMLGlossaryItems(&$a_xml_writer, $a_inst, &$expLog) { global $ilBench; $attrs = array(); $a_xml_writer->xmlStartTag("Glossary", $attrs); // MetaData $this->exportXMLMetaData($a_xml_writer); $terms = $this->getTermList(); // export glossary terms reset($terms); foreach ($terms as $term) { $ilBench->start("GlossaryExport", "exportGlossaryItem"); $expLog->write(date("[y-m-d H:i:s] ") . "Page Object " . $page["obj_id"]); // export xml to writer object $ilBench->start("GlossaryExport", "exportGlossaryItem_getGlossaryTerm"); $glo_term = new ilGlossaryTerm($term["id"]); $ilBench->stop("GlossaryExport", "exportGlossaryItem_getGlossaryTerm"); $ilBench->start("GlossaryExport", "exportGlossaryItem_XML"); $glo_term->exportXML($a_xml_writer, $a_inst); $ilBench->stop("GlossaryExport", "exportGlossaryItem_XML"); unset($glo_term); $ilBench->stop("GlossaryExport", "exportGlossaryItem"); } $a_xml_writer->xmlEndTag("Glossary"); }