88 function ilObjectGUI($a_data, $a_id = 0, $a_call_by_reference =
true, $a_prepare_output =
true)
92 $this->tabs_gui =& $ilTabs;
110 $params = array(
"ref_id");
112 if (!$a_call_by_reference)
114 $params = array(
"ref_id",
"obj_id");
117 $this->ctrl->saveParameter($this, $params);
120 $this->tree =&
$tree;
121 $this->formaction = array();
122 $this->return_location = array();
123 $this->target_frame = array();
125 $this->sub_objects =
"";
127 $this->data = $a_data;
129 $this->call_by_reference = $a_call_by_reference;
130 $this->prepare_output = $a_prepare_output;
131 $this->creation_mode =
false;
133 $this->ref_id = ($this->call_by_reference) ? $this->
id :
$_GET[
"ref_id"];
134 $this->obj_id = ($this->call_by_reference) ?
$_GET[
"obj_id"] : $this->
id;
138 $this->link_params =
"ref_id=".$this->ref_id;
145 if (is_object($this->
object))
147 if ($this->call_by_reference && $this->ref_id ==
$_GET[
"ref_id"])
149 $this->ctrl->setContext($this->object->getId(),
150 $this->
object->getType());
158 if ($a_prepare_output)
170 $next_class = $this->ctrl->getNextClass($this);
171 $cmd = $this->ctrl->getCmd();
196 return $this->call_by_reference;
207 $this->creation_mode = $a_mode;
215 return $this->creation_mode;
224 if ($this->call_by_reference)
240 global $ilLocator,
$tpl, $ilUser;
242 $this->tpl->getStandardTemplate();
244 if (strtolower(
$_GET[
"baseClass"]) ==
"iladministrationgui")
273 if($this->call_by_reference)
277 $class_name = $this->objDefinition->getClassName($obj_type);
278 $class = strtolower(
"ilObj".$class_name.
"GUI");
279 $class_path = $this->ctrl->lookupClassPath($class);
280 include_once($class_path);
281 $class_name = $this->ctrl->getClassForClasspath($class_path);
283 $this->parent_gui_obj =
new $class_name(
"",
$_GET[
"ref_id"],
true,
false);
285 $this->parent_gui_obj->setCreationMode(
true);
286 $this->parent_gui_obj->setTitleAndDescription();
299 require_once
'Services/WebDAV/classes/class.ilDAVServer.php';
301 $ilUser->getId() != ANONYMOUS_USER_ID)
316 $this->tpl->setTitle($this->object->getPresentationTitle());
317 $this->tpl->setDescription($this->object->getLongDescription());
318 if (strtolower(
$_GET[
"baseClass"]) ==
"iladministrationgui")
327 $this->lng->txt(
"obj_" . $this->object->getType()));
330 include_once
'./Services/Object/classes/class.ilObjectListGUIFactory.php';
332 $lgui->initItem($this->object->getRefId(), $this->
object->getId());
333 $this->tpl->setAlertProperties($lgui->getAlertProperties());
347 if(!$this->creation_mode && $this->
object)
349 include_once
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php";
351 $ilAccess, $this->object->getType(),
$this->ref_id, $this->
object->getId());
355 include_once
"Services/Object/classes/class.ilObjectListGUI.php";
356 ilObjectListGUI::prepareJSLinks($this->ctrl->getLinkTarget($this,
"redrawHeaderAction",
"",
true),
357 $this->ctrl->getLinkTargetByClass(array(
"ilcommonactiondispatchergui",
"ilnotegui"),
"",
"",
true,
false),
358 $this->ctrl->getLinkTargetByClass(array(
"ilcommonactiondispatchergui",
"iltagginggui"),
"",
"",
true,
false));
360 $lg = $dispatcher->initHeaderAction();
367 $lg->setContainerObject($this);
372 include_once
"Services/Notes/classes/class.ilNote.php";
373 if($ilAccess->checkAccess(
"write",
"", $this->ref_id) ||
374 $ilAccess->checkAccess(
"edit_permissions",
"", $this->ref_id) ||
377 $lg->enableComments(
true);
380 $lg->enableNotes(
true);
381 $lg->enableTags(
true);
395 if(is_object($a_list_gui))
397 $this->tpl->setHeaderActionMenu($a_list_gui->getHeaderAction());
415 echo $lg->getHeaderAction();
423 if ($this->object->getRefId() ==
"")
428 if (strtolower(
$_GET[
"baseClass"]) ==
"iladministrationgui")
430 if ($this->object->getRefId() != ROOT_FOLDER_ID &&
431 $this->
object->getRefId() != SYSTEM_FOLDER_ID)
433 $par_id = $tree->getParentId($this->object->getRefId());
435 $class_name = $objDefinition->getClassName($obj_type);
436 $class = strtolower(
"ilObj".$class_name.
"GUI");
437 $this->ctrl->setParameterByClass($class,
"ref_id", $par_id);
438 $tpl->setUpperIcon($this->ctrl->getLinkTargetByClass($class,
"view"));
439 $this->ctrl->clearParametersByClass($class);
442 else if ($this->object->getRefId() == ROOT_FOLDER_ID)
444 $this->ctrl->setParameterByClass(
"iladministrationgui",
"ref_id",
"");
445 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"settings");
446 $tpl->setUpperIcon($this->ctrl->getLinkTargetByClass(
"iladministrationgui",
"frameset"),
448 $this->ctrl->clearParametersByClass(
"iladministrationgui");
453 if ($this->object->getRefId() != ROOT_FOLDER_ID &&
454 $this->
object->getRefId() != SYSTEM_FOLDER_ID &&
455 $_GET[
"obj_id"] ==
"")
457 if (defined(
"ILIAS_MODULE"))
461 $par_id = $tree->getParentId($this->object->getRefId());
462 $tpl->setUpperIcon($prefix.
"repository.php?cmd=frameset&ref_id=".$par_id,
472 if ($this->object->getRefId() ==
"")
477 $tpl->setMountWebfolderIcon($this->object->getRefId());
488 $this->
getTabs($this->tabs_gui);
507 if (
$_GET[
"admin_mode"] ==
"repository")
509 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"settings");
510 $tabs_gui->setBackTarget($this->lng->txt(
"administration"),
511 $this->ctrl->getLinkTargetByClass(
"iladministrationgui",
"frameset"),
513 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"repository");
518 $tabs_gui->addTarget(
"view",
519 $this->ctrl->getLinkTarget($this,
"view"), array(
"",
"view"), get_class($this));
525 $tabs_gui->addTarget(
"perm_settings",
526 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"),
"",
"ilpermissiongui");
529 if ($tree->getSavedNodeData($this->object->getRefId()))
531 $tabs_gui->addTarget(
"trash",
532 $this->ctrl->getLinkTarget($this,
"trash"),
"trash", get_class($this));
551 if (is_array($a_actions))
553 foreach ($a_actions as $name =>
$lng)
555 $this->actions[$name] = array(
"name" => $name,
"lng" =>
$lng);
572 if (is_array($a_sub_objects))
574 foreach ($a_sub_objects as $name => $options)
576 $this->sub_objects[$name] = array(
"name" => $name,
"max" => $options[
"max"]);
581 $this->sub_objects =
"";
595 global $ilLocator,
$tpl;
597 if ($this->omit_locator)
603 if($this->call_by_reference)
610 : $this->object->getRefId();
611 $ilLocator->addRepositoryItems(
$ref_id);
614 if(!$this->creation_mode)
620 if (
$_GET[
"admin_mode"] ==
"" &&
621 strtolower($this->ctrl->getCmdClass()) ==
"ilobjrolegui")
623 $this->ctrl->setParameterByClass(
"ilobjrolegui",
624 "rolf_ref_id",
$_GET[
"rolf_ref_id"]);
625 $this->ctrl->setParameterByClass(
"ilobjrolegui",
626 "obj_id",
$_GET[
"obj_id"]);
627 $ilLocator->addItem($this->lng->txt(
"role"),
628 $this->ctrl->getLinkTargetByClass(array(
"ilpermissiongui",
629 "ilobjrolegui"),
"perm"));
645 $this->omit_locator = $a_omit;
656 if (
$_GET[
"admin_mode"] ==
"settings")
658 $ilLocator->addItem($this->lng->txt(
"administration"),
659 $this->ctrl->getLinkTargetByClass(
"iladministrationgui",
"frameset"),
661 if ($this->object->getRefId() != SYSTEM_FOLDER_ID)
663 $ilLocator->addItem($this->object->getTitle(),
664 $this->ctrl->getLinkTarget($this,
"view"));
669 $this->ctrl->setParameterByClass(
"iladministrationgui",
671 $this->ctrl->setParameterByClass(
"iladministrationgui",
672 "admin_mode",
"settings");
676 $this->ctrl->clearParametersByClass(
"iladministrationgui");
677 $ilLocator->addAdministrationItems();
687 include_once(
"./Services/Repository/classes/class.ilRepUtilGUI.php");
689 $ru->restoreObjects(
$_GET[
"ref_id"],
$_POST[
"trash_id"]);
690 $this->ctrl->redirect($this,
"trash");
701 include_once(
"./Services/Repository/classes/class.ilRepUtilGUI.php");
704 session_unregister(
"saved_post");
705 $this->ctrl->returnToParent($this);
715 session_unregister(
"saved_post");
716 $this->ctrl->returnToParent($this);
726 global
$log, $ilAppEventHandler,
$lng;
728 include_once(
"./Services/Repository/classes/class.ilRepUtilGUI.php");
730 $ru->removeObjectsFromSystem(
$_POST[
"trash_id"]);
731 $this->ctrl->redirect($this,
"trash");
741 session_unregister(
"saved_post");
742 $this->ctrl->returnToParent($this);
758 $ilErr->raiseError($this->lng->txt(
"permission_denied"),$ilErr->MESSAGE);
762 $this->lng->loadLanguageModule($new_type);
763 $this->ctrl->setParameter($this,
"new_type", $new_type);
768 if(
$_GET[
"cpfl"] && isset($forms[self::CFORM_CLONE]))
770 $forms = array(self::CFORM_CLONE => $forms[self::CFORM_CLONE]);
806 if(
sizeof($a_forms) == 1)
808 $a_forms = array_shift($a_forms);
809 if (is_object($a_forms) && get_class($a_forms) ==
"ilPropertyFormGUI")
811 return $a_forms->getHTML();
816 include_once(
"./Services/Accordion/classes/class.ilAccordionGUI.php");
821 foreach ($a_forms as $form_type => $cf)
823 if (is_object($cf) && get_class($cf) ==
"ilPropertyFormGUI")
825 $htpl =
new ilTemplate(
"tpl.creation_acc_head.html",
true,
true,
"Services/Object");
830 if(method_exists($this,
"getCreationFormTitle"))
832 $form_title = $this->getCreationFormTitle($form_type);
836 $form_title = $cf->getTitle();
840 $htpl->setVariable(
"TITLE", $this->lng->txt(
"option").
" ".$cnt.
": ".
843 $cf->setTitleIcon(null);
844 $cf->setTableWidth(
"100%");
846 $acc->addItem($htpl->get(), $cf->getHTML());
852 return "<div style='max-width:700px;'>".$acc->getHTML().
"</div>";
864 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
866 $form->setTarget(
"_top");
867 $form->setFormAction($this->ctrl->getFormAction($this,
"save"));
868 $form->setTitle($this->lng->txt($a_new_type.
"_new"));
874 $ti->setRequired(
true);
885 $form->addCommandButton(
"save", $this->lng->txt($a_new_type.
"_add"));
886 $form->addCommandButton(
"cancel", $this->lng->txt(
"cancel"));
900 $lng->loadLanguageModule(
'didactic');
903 $options[0] = array($this->lng->txt(
'default'),
905 $this->lng->txt(
'didactic_default_type_info'),
906 $this->lng->txt(
'objs_'.$this->type)
909 include_once
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateSettings.php';
913 foreach($templates as $template)
915 $options[
"dtpl_".$template->getId()] = array($template->getTitle(),
916 $template->getDescription());
922 if(
sizeof($options) > 1)
925 $this->lng->txt(
'type'),
931 include_once
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateObjSettings.php';
939 foreach($options as $id =>
$data)
942 $type->addOption($option);
981 $this->ilias->raiseError($this->lng->txt(
"no_create_permission"), $this->ilias->error_obj->MESSAGE);
984 $this->lng->loadLanguageModule($new_type);
985 $this->ctrl->setParameter($this,
"new_type", $new_type);
988 if ($form->checkInput())
990 $this->ctrl->setParameter($this,
"new_type",
"");
993 $class_name =
"ilObj".$objDefinition->getClassName($new_type);
994 $location = $objDefinition->getLocation($new_type);
995 include_once(
$location.
"/class.".$class_name.
".php");
996 $newObj =
new $class_name();
997 $newObj->setType($new_type);
998 $newObj->setTitle($form->getInput(
"title"));
999 $newObj->setDescription($form->getInput(
"desc"));
1008 $newObj->applyDidacticTemplate($dtpl);
1012 $args = func_get_args();
1025 $form->setValuesByPost();
1026 $tpl->setContent($form->getHtml());
1038 if(
$tpl && substr(
$tpl, 0, strlen($a_type)+1) == $a_type.
"_")
1040 return (
int)substr(
$tpl, strlen($a_type)+1);
1052 global $rbacreview, $ilUser;
1054 if(!$a_parent_node_id)
1056 $a_parent_node_id =
$_GET[
"ref_id"];
1063 $this->obj_id = $a_obj->
getId();
1064 $this->ref_id = $a_obj->
getRefId();
1067 require_once(
'Services/Tracking/classes/class.ilChangeEvent.php');
1072 include_once
"Services/AccessControl/classes/class.ilRbacLog.php";
1073 $rbac_log_roles = $rbacreview->getParentRoleIds($this->ref_id,
false);
1086 $this->ctrl->returnToParent($this);
1096 global
$tpl, $ilTabs;
1100 $this->ilias->raiseError($this->lng->txt(
"msg_no_perm_write"),$this->ilias->error_obj->MESSAGE);
1103 $ilTabs->activateTab(
"settings");
1109 $form->setValuesByArray($values);
1111 $tpl->setContent($form->getHTML());
1123 $lng->loadLanguageModule($this->object->getType());
1125 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1127 $form->setFormAction($this->ctrl->getFormAction($this,
"update"));
1128 $form->setTitle($this->lng->txt($this->object->getType().
"_edit"));
1134 $ti->setRequired(
true);
1135 $form->addItem($ti);
1141 $form->addItem($ta);
1145 $form->addCommandButton(
"update", $this->lng->txt(
"save"));
1168 $values[
"title"] = $this->
object->getTitle();
1169 $values[
"desc"] = $this->
object->getDescription();
1189 global $ilTabs,
$tpl;
1193 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1197 if($form->checkInput())
1199 $this->
object->setTitle($form->getInput(
"title"));
1200 $this->
object->setDescription($form->getInput(
"desc"));
1202 $this->
object->update();
1209 $ilTabs->activateTab(
"settings");
1210 $form->setValuesByPost();
1211 $tpl->setContent($form->getHtml());
1230 $this->ctrl->redirect($this,
"edit");
1241 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1243 $form->setTarget(
"_top");
1244 $form->setFormAction($this->ctrl->getFormAction($this,
"importFile"));
1245 $form->setTitle($this->lng->txt($a_new_type.
"_import"));
1247 include_once(
"./Services/Form/classes/class.ilFileInputGUI.php");
1248 $fi =
new ilFileInputGUI($this->lng->txt(
"import_file"),
"importfile");
1250 $fi->setRequired(
true);
1251 $form->addItem($fi);
1253 $form->addCommandButton(
"importFile", $this->lng->txt(
"import"));
1254 $form->addCommandButton(
"cancel", $this->lng->txt(
"cancel"));
1268 $parent_id =
$_GET[
"ref_id"];
1275 $ilErr->raiseError($this->lng->txt(
"no_create_permission"));
1278 $this->lng->loadLanguageModule($new_type);
1279 $this->ctrl->setParameter($this,
"new_type", $new_type);
1282 if ($form->checkInput())
1286 if($objDefinition->isContainer($new_type))
1288 include_once
'./Services/Export/classes/class.ilImportContainer.php';
1293 include_once(
"./Services/Export/classes/class.ilImport.php");
1294 $imp =
new ilImport((
int)$parent_id);
1297 $new_id = $imp->importObject(null, $_FILES[
"importfile"][
"tmp_name"],
1298 $_FILES[
"importfile"][
"name"], $new_type);
1302 $this->ctrl->setParameter($this,
"new_type",
"");
1307 if(!$objDefinition->isContainer($new_type))
1317 if($objDefinition->isContainer($new_type))
1330 $form->setValuesByPost();
1331 $tpl->setContent($form->getHtml());
1342 $this->ctrl->returnToParent($this);
1355 if ($this->formaction[$a_cmd] !=
"")
1357 return $this->formaction[$a_cmd];
1361 return $a_formaction;
1375 $this->formaction[$a_cmd] = $a_formaction;
1387 if ($this->return_location[$a_cmd] !=
"")
1389 return $this->return_location[$a_cmd];
1407 $this->return_location[$a_cmd] = $a_location;
1419 if ($this->target_frame[$a_cmd] !=
"")
1421 return $this->target_frame[$a_cmd];
1423 elseif (!empty($a_target_frame))
1425 return "target=\"".$a_target_frame.
"\"";
1442 $this->target_frame[$a_cmd] =
"target=\"".$a_target_frame.
"\"";
1450 $ilBench->start(
"Explorer",
"setOutput_isVisible");
1453 if ($visible && $a_type ==
'crs') {
1455 if($crs_id = $tree->checkForParentType($a_ref_id,
'crs'))
1462 if(!$tmp_obj->isActivated())
1467 if(($crs_id != $a_ref_id) and $tmp_obj->isArchived())
1472 include_once
"./course/classes/class.ilCourseItems.php";
1482 $ilBench->stop(
"Explorer",
"setOutput_isVisible");
1499 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1503 require_once(
'Services/Tracking/classes/class.ilChangeEvent.php');
1506 $this->object->getType(),
1507 $this->
object->getRefId(),
1508 $this->
object->getId(), $ilUser->getId());
1511 include_once(
"./Services/Repository/classes/class.ilAdminSubItemsTableGUI.php");
1512 if (!$this->call_by_reference)
1514 $this->ctrl->setParameter($this,
"obj_id", $this->obj_id);
1518 $tpl->setContent($itab->getHTML());
1532 if (
$_GET[
"item_ref_id"] !=
"")
1540 include_once(
"./Services/Repository/classes/class.ilRepUtilGUI.php");
1542 if (!$ru->showDeleteConfirmation(
$_POST[
"id"], $a_error))
1544 $ilCtrl->returnToParent($this);
1557 include_once(
"./Services/Repository/classes/class.ilRepUtilGUI.php");
1559 $ru->showTrashTable(
$_GET[
"ref_id"]);
1569 if ($this->sub_objects ==
"")
1571 $d = $this->objDefinition->getCreatableSubObjects($this->object->getType());
1586 if ($row[
"max"] > 0)
1589 for ($i=0; $i<count($this->data[
"ctrl"]); $i++)
1591 if ($this->data[
"ctrl"][$i][
"type"] == $row[
"name"])
1598 if ($row[
"max"] ==
"" || $count < $row[
"max"])
1600 $subobj[] = $row[
"name"];
1605 if (is_array($subobj))
1610 $this->tpl->setCurrentBlock(
"add_object");
1611 $this->tpl->setVariable(
"SELECT_OBJTYPE", $opts);
1612 $this->tpl->setVariable(
"BTN_NAME",
"create");
1613 $this->tpl->setVariable(
"TXT_ADD", $this->lng->txt(
"add"));
1614 $this->tpl->parseCurrentBlock();
1630 $a_type = $this->type;
1633 $template =
"tpl.".$a_type.
"_".$a_cmd.
".html";
1635 if (!$this->tpl->fileExists($template) &&
1636 !file_exists(
"./templates/default/".$template))
1638 $template =
"tpl.obj_".$a_cmd.
".html";
1640 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content", $template,$a_in_module);
1653 foreach ($a_ref_ids as $id)
1656 $tmp_obj =& $this->ilias->obj_factory->getInstanceByRefId($id);
1657 $title[] = $tmp_obj->getTitle();
1682 $ilToolbar->addButton($a_text, $this->ctrl->getLinkTarget($this, $a_cmd), $a_target);
1694 include_once
"./Services/Table/classes/class.ilTableGUI.php";
1708 case "clipboardObject":
1709 $offset =
$_GET[
"offset"];
1710 $order =
$_GET[
"sort_by"];
1711 $direction =
$_GET[
"sort_order"];
1712 $tbl->disable(
"footer");
1716 $offset =
$_GET[
"offset"];
1717 $order =
$_GET[
"sort_by"];
1718 $direction =
$_GET[
"sort_order"];
1722 $tbl->setOrderColumn($order);
1723 $tbl->setOrderDirection($direction);
1724 $tbl->setOffset($offset);
1725 $tbl->setLimit(
$_GET[
"limit"]);
1726 $tbl->setFooter(
"tblfooter",$this->lng->txt(
"previous"),$this->lng->txt(
"next"));
1727 $tbl->setData($result_set);
1735 $tpl =& $tbl->getTemplateObject();
1737 $tpl->setCurrentBlock(
"tbl_form_header");
1738 $tpl->setVariable(
"FORMACTION", $ilCtrl->getFormAction($this));
1739 $tpl->parseCurrentBlock();
1741 $tpl->setCurrentBlock(
"tbl_action_btn");
1742 $tpl->setVariable(
"BTN_NAME",
"paste");
1743 $tpl->setVariable(
"BTN_VALUE",$this->lng->txt(
"insert_object_here"));
1744 $tpl->parseCurrentBlock();
1746 $tpl->setCurrentBlock(
"tbl_action_btn");
1747 $tpl->setVariable(
"BTN_NAME",
"clear");
1748 $tpl->setVariable(
"BTN_VALUE",$this->lng->txt(
"clear_clipboard"));
1749 $tpl->parseCurrentBlock();
1751 $tpl->setCurrentBlock(
"tbl_action_row");
1752 $tpl->setVariable(
"COLUMN_COUNTS",3);
1754 $tpl->parseCurrentBlock();
1756 $tbl->setTitle($this->lng->txt(
"clipboard"),
"icon_typ_b.gif",$this->lng->txt(
"clipboard"));
1757 $tbl->setHeaderNames(array($this->lng->txt(
'obj_type'),
1758 $this->lng->txt(
'title'),
1759 $this->lng->txt(
'action')));
1760 $tbl->setHeaderVars(array(
'type',
1763 array(
'ref_id' => $this->object->getRefId(),
1764 'cmd' =>
'clipboard',
1765 'cmdClass' =>
$_GET[
'cmdClass'],
1766 'cmdNode' =>
$_GET[
'cmdNode']));
1768 $tbl->setColumnWidth(array(
"",
"80%",
"19%"));
1774 $this->tpl->setVariable(
"RESULT_TABLE",$tbl->tpl->get());
1791 $class_name = $this->objDefinition->getClassName($obj_type);
1792 $class = strtolower(
"ilObj".$class_name.
"GUI");
1793 $this->ctrl->redirectByClass(array(
"ilrepositorygui", $class), $a_cmd);
1808 include_once
'./Services/Object/classes/class.ilObjectCopyGUI.php';
1810 $cp->setType($a_type);
1811 $cp->setTarget(
$_GET[
'ref_id']);
1814 $cp->showSourceSearch($a_tpl_varname);
1818 return $cp->showSourceSearch(null);
1830 include_once(
'classes/class.ilLink.php');
1831 include_once(
'Services/CopyWizard/classes/class.ilCopyWizardOptions.php');
1838 $ilErr->raiseError($this->lng->txt(
'permission_denied'));
1848 $ilErr->raiseError($this->lng->txt(
'permission_denied'));
1854 $wizard_options->saveOwner($ilUser->getId());
1855 $wizard_options->saveRoot((
int) $_REQUEST[
'clone_source']);
1857 $options =
$_POST[
'cp_options'] ?
$_POST[
'cp_options'] : array();
1858 foreach($options as $source_id => $option)
1860 $wizard_options->addEntry($source_id,$option);
1862 $wizard_options->read();
1865 $new_obj = $orig->cloneObject((
int)
$_GET[
'ref_id'],$copy_id);
1868 $wizard_options->deleteAll();
1893 include_once(
"Services/Block/classes/class.ilColumnGUI.php");
1898 if ($ilCtrl->getNextClass() !=
"ilcolumngui")
1901 return $this->getContent();
1905 if (!$ilCtrl->isAsynch())
1915 $this->html = $ilCtrl->forwardCommand($column_gui);
1922 $this->html = $ilCtrl->forwardCommand($column_gui);
1928 return $this->getContent();
1944 include_once(
"Services/Block/classes/class.ilColumnGUI.php");
1954 if ($ilCtrl->getNextClass() ==
"ilcolumngui" &&
1958 $html = $ilCtrl->forwardCommand($column_gui);
1962 if (!$ilCtrl->isAsynch())
1964 $html = $ilCtrl->getHTML($column_gui);
1976 $column_gui->setRepositoryMode(
true);
1977 $column_gui->setEnableEdit(
false);
1980 $column_gui->setEnableEdit(
true);
1997 if (!is_int(strpos($_SERVER[
"PHP_SELF"],
"goto.php")))
2000 if($a_perm ==
"create")
2004 $a_ref_id =
$_GET[
"ref_id"];
2011 if (!is_object($this->
object))
2017 $a_ref_id = $this->
object->getRefId();
2019 $type = $this->
object->getType();
2029 die(
"Permission Denied.");
2047 if($a_perm ==
"create")
2051 $a_ref_id =
$_GET[
"ref_id"];
2053 return $ilAccess->checkAccess($a_perm.
"_".$a_type, $a_cmd, $a_ref_id);
2058 if (!is_object($this->
object))
2064 $a_ref_id = $this->
object->getRefId();
2066 return $ilAccess->checkAccess($a_perm, $a_cmd, $a_ref_id);