/**
  * export page objects to xml (see ilias_co.dtd)
  *
  * @param	object		$a_xml_writer	ilXmlWriter object that receives the
  *										xml data
  */
 function exportXMLPageObjects(&$a_xml_writer, $a_inst, &$expLog)
 {
     global $ilBench;
     include_once "./Modules/LearningModule/classes/class.ilLMPageObject.php";
     include_once "./Modules/LearningModule/classes/class.ilLMPage.php";
     $pages = ilLMPageObject::getPageList($this->getId());
     foreach ($pages as $page) {
         if (ilLMPage::_exists($this->getType(), $page["obj_id"])) {
             $expLog->write(date("[y-m-d H:i:s] ") . "Page Object " . $page["obj_id"]);
             // export xml to writer object
             $page_obj = new ilLMPageObject($this, $page["obj_id"]);
             $page_obj->exportXML($a_xml_writer, "normal", $a_inst);
             // collect media objects
             $mob_ids = $page_obj->getMediaObjectIDs();
             foreach ($mob_ids as $mob_id) {
                 $this->mob_ids[$mob_id] = $mob_id;
             }
             // collect all file items
             $file_ids = $page_obj->getFileItemIds();
             foreach ($file_ids as $file_id) {
                 $this->file_ids[$file_id] = $file_id;
             }
             // collect all questions
             $q_ids = $page_obj->getQuestionIds();
             foreach ($q_ids as $q_id) {
                 $this->q_ids[$q_id] = $q_id;
             }
             unset($page_obj);
         }
     }
 }