/** * Save layout * */ public function saveLayout() { global $tpl, $lng, $ilCtrl; $this->initEditLayoutForm(); if ($this->form->checkInput()) { ilLMObject::writeLayout($this->obj->getId(), $this->form->getInput("layout")); ilUtil::sendSuccess($lng->txt("msg_obj_modified"), true); $ilCtrl->redirect($this, "editLayout"); } $this->form->setValuesByPost(); $tpl->setContent($this->form->getHtml()); }