/** * split page to new page at specified position */ function splitPage() { global $ilErr; if ($this->pg_obj->getParentType() != "lm" && $this->pg_obj->getParentType() != "dbk") { $ilErr->raiseError("Split method called for wrong parent type (" . $this->pg_obj->getParentType() . ")", $ilErr->FATAL); } else { $lm_page =& ilLMPageObject::_splitPage($this->pg_obj->getId(), $this->pg_obj->getParentType(), $this->hier_id); // jump to new page $this->ctrl->setParameterByClass("illmpageobjectgui", "obj_id", $lm_page->getId()); $this->ctrl->redirectByClass("illmpageobjectgui", "edit"); } $this->ctrl->returnToParent($this, "jump" . ($this->hier_id - 1)); }