コード例 #1
0
 protected function afterSave(ilObject $a_new_object)
 {
     if ($_POST["prtf"]) {
         include_once "Modules/Portfolio/classes/class.ilObjPortfolio.php";
         $source = new ilObjPortfolio($_POST["prtf"], false);
         ilObjPortfolio::clonePagesAndSettings($source, $a_new_object);
     }
     ilUtil::sendSuccess($this->lng->txt("prtf_portfolio_created"), true);
     $this->ctrl->setParameter($this, "prt_id", $a_new_object->getId());
     $this->ctrl->redirect($this, "view");
 }