/** * export page objects of structure object (see ilias_co.dtd) * * @param object $a_xml_writer ilXmlWriter object that receives the * xml data */ function exportXMLPageObjects(&$a_xml_writer, $a_inst = 0) { include_once './Modules/LearningModule/classes/class.ilLMPageObject.php'; global $ilBench; $this->tree = new ilTree($this->getLmId()); $this->tree->setTableNames('lm_tree', 'lm_data'); $this->tree->setTreeTablePK("lm_id"); $childs = $this->tree->getChilds($this->getId()); foreach ($childs as $child) { if ($child["type"] != "pg") { continue; } // export xml to writer object $ilBench->start("ContentObjectExport", "exportStructureObject_exportPageObjectAlias"); //$ilBench->start("ContentObjectExport", "exportStructureObject_getLMPageObject"); //$page_obj = new ilLMPageObject($this->getContentObject(), $child["obj_id"]); //$ilBench->stop("ContentObjectExport", "exportStructureObject_getLMPageObject"); ilLMPageObject::_exportXMLAlias($a_xml_writer, $child["obj_id"], $a_inst); //$page_obj->exportXML($a_xml_writer, "alias", $a_inst); //unset($page_obj); $ilBench->stop("ContentObjectExport", "exportStructureObject_exportPageObjectAlias"); } }