/** * Delete Nested Page Objects */ private function delete_rec($a_delete_meta_data = true) { $childs = $this->tree->getChilds($this->getId()); foreach ($childs as $child) { $obj =& ilSCORM2004NodeFactory::getInstance($this->slm_object, $child["obj_id"], false); if (is_object($obj)) { if ($obj->getType() == "page") { $obj->delete($a_delete_meta_data); } } unset($obj); } parent::delete($a_delete_meta_data); }
/** * Delete Scorm Page * * @param boolean Delete also metadata. */ function delete($a_delete_meta_data = true) { parent::delete($a_delete_meta_data); $this->page_object->delete(); }