/** * Save profile form */ public function save() { global $tpl, $lng, $ilCtrl; $form = $this->initProfileForm("create"); if ($form->checkInput()) { $prof = new ilSkillProfile(); $prof->setTitle($form->getInput("title")); $prof->setDescription($form->getInput("description")); $prof->create(); ilUtil::sendSuccess($lng->txt("msg_obj_modified"), true); $ilCtrl->redirect($this, "listProfiles"); } else { $form->setValuesByPost(); $tpl->setContent($form->getHtml()); } }