/**
  * export (sub)structure objects of structure object (see ilias_co.dtd)
  *
  * @param	object		$a_xml_writer	ilXmlWriter object that receives the
  *										xml data
  */
 function exportXMLStructureObjects(&$a_xml_writer, $a_inst, &$expLog)
 {
     $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"] != "st") {
             continue;
         }
         // export xml to writer object
         $structure_obj = new ilStructureObject($this->getContentObject(), $child["obj_id"]);
         $structure_obj->exportXML($a_xml_writer, $a_inst, $expLog);
         unset($structure_obj);
     }
 }
 /**
  * export structure objects to xml (see ilias_co.dtd)
  *
  * @param	object		$a_xml_writer	ilXmlWriter object that receives the
  *										xml data
  */
 function exportXMLStructureObjects(&$a_xml_writer, $a_inst, &$expLog)
 {
     include_once './Modules/LearningModule/classes/class.ilStructureObject.php';
     $childs = $this->lm_tree->getChilds($this->lm_tree->getRootId());
     foreach ($childs as $child) {
         if ($child["type"] != "st") {
             continue;
         }
         $structure_obj = new ilStructureObject($this, $child["obj_id"]);
         $structure_obj->exportXML($a_xml_writer, $a_inst, $expLog);
         unset($structure_obj);
     }
 }