コード例 #1
0
 protected function deletePortfolios()
 {
     global $lng, $ilCtrl;
     if (is_array($_POST["prtfs"])) {
         foreach ($_POST["prtfs"] as $id) {
             if ($this->checkAccess("write", $id)) {
                 $portfolio = new ilObjPortfolio($id, false);
                 if ($portfolio->getOwner() == $this->user_id) {
                     $this->access_handler->removePermission($id);
                     $portfolio->delete();
                 }
             }
         }
     }
     ilUtil::sendSuccess($lng->txt("prtf_portfolio_deleted"), true);
     $ilCtrl->redirect($this, "show");
 }