コード例 #1
0
 function activateObject($a_activate = true)
 {
     if (!isset($_POST["pglayout"])) {
         ilUtil::sendInfo($this->lng->txt("no_checkbox"), true);
     } else {
         ilUtil::sendSuccess($this->lng->txt("sty_opt_saved"), true);
         foreach ($_POST["pglayout"] as $item) {
             $pg_layout = new ilPageLayout($item);
             $pg_layout->activate($a_activate);
         }
     }
     $this->ctrl->redirect($this, "viewPageLayouts");
 }