90 function ilObjectGUI($a_data, $a_id = 0, $a_call_by_reference =
true, $a_prepare_output =
true)
94 $this->tabs_gui =& $ilTabs;
112 $params = array(
"ref_id");
114 if (!$a_call_by_reference)
116 $params = array(
"ref_id",
"obj_id");
119 $this->ctrl->saveParameter($this, $params);
122 $this->tree =&
$tree;
123 $this->formaction = array();
124 $this->return_location = array();
125 $this->target_frame = array();
127 $this->sub_objects =
"";
129 $this->data = $a_data;
131 $this->call_by_reference = $a_call_by_reference;
132 $this->prepare_output = $a_prepare_output;
133 $this->creation_mode =
false;
135 $this->ref_id = ($this->call_by_reference) ? $this->
id :
$_GET[
"ref_id"];
136 $this->obj_id = ($this->call_by_reference) ?
$_GET[
"obj_id"] : $this->
id;
140 $this->link_params =
"ref_id=".$this->ref_id;
147 if (is_object($this->
object))
149 if ($this->call_by_reference && $this->ref_id ==
$_GET[
"ref_id"])
151 $this->ctrl->setContext($this->object->getId(),
152 $this->
object->getType());
160 if ($a_prepare_output)
172 $next_class = $this->ctrl->getNextClass($this);
173 $cmd = $this->ctrl->getCmd();
198 return $this->call_by_reference;
209 $this->creation_mode = $a_mode;
217 return $this->creation_mode;
226 if ($this->call_by_reference)
244 $this->tpl->getStandardTemplate();
246 if (strtolower(
$_GET[
"baseClass"]) ==
"iladministrationgui")
274 if($this->call_by_reference)
278 $class_name = $this->objDefinition->getClassName($obj_type);
279 $class = strtolower(
"ilObj".$class_name.
"GUI");
280 $class_path = $this->ctrl->lookupClassPath($class);
281 include_once($class_path);
282 $class_name = $this->ctrl->getClassForClasspath($class_path);
284 $this->parent_gui_obj =
new $class_name(
"",
$_GET[
"ref_id"],
true,
false);
286 $this->parent_gui_obj->setCreationMode(
true);
287 $this->parent_gui_obj->setTitleAndDescription();
299 require_once
'Services/WebDAV/classes/class.ilDAVServer.php';
301 $ilUser->getId() != ANONYMOUS_USER_ID)
316 if (!is_object($this->
object))
326 $this->tpl->setTitle($this->object->getPresentationTitle());
327 $this->tpl->setDescription($this->object->getLongDescription());
329 if (strtolower(
$_GET[
"baseClass"]) ==
"iladministrationgui")
338 $this->lng->txt(
"obj_" . $this->object->getType()));
341 include_once
'./Services/Object/classes/class.ilObjectListGUIFactory.php';
343 $lgui->initItem($this->object->getRefId(), $this->
object->getId());
344 $this->tpl->setAlertProperties($lgui->getAlertProperties());
358 if(!$this->creation_mode && $this->
object)
360 include_once
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php";
362 $ilAccess, $this->object->getType(),
$this->ref_id, $this->
object->getId());
366 include_once
"Services/Object/classes/class.ilObjectListGUI.php";
367 ilObjectListGUI::prepareJSLinks($this->ctrl->getLinkTarget($this,
"redrawHeaderAction",
"",
true),
368 $this->ctrl->getLinkTargetByClass(array(
"ilcommonactiondispatchergui",
"ilnotegui"),
"",
"",
true,
false),
369 $this->ctrl->getLinkTargetByClass(array(
"ilcommonactiondispatchergui",
"iltagginggui"),
"",
"",
true,
false));
371 $lg = $dispatcher->initHeaderAction();
378 $lg->setContainerObject($this);
383 include_once
"Services/Notes/classes/class.ilNote.php";
384 if($ilAccess->checkAccess(
"write",
"", $this->ref_id) ||
385 $ilAccess->checkAccess(
"edit_permissions",
"", $this->ref_id) ||
388 $lg->enableComments(
true);
391 $lg->enableNotes(
true);
392 $lg->enableTags(
true);
406 if(is_object($a_list_gui))
408 $this->tpl->setHeaderActionMenu($a_list_gui->getHeaderAction());
426 echo $lg->getHeaderAction();
435 if ($this->object->getRefId() ==
"")
440 $tpl->setMountWebfolderIcon($this->object->getRefId());
451 $this->
getTabs($this->tabs_gui);
470 if (
$_GET[
"admin_mode"] ==
"repository")
472 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"settings");
473 $tabs_gui->setBackTarget($this->lng->txt(
"administration"),
474 $this->ctrl->getLinkTargetByClass(
"iladministrationgui",
"frameset"),
476 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"repository");
481 $tabs_gui->addTarget(
"view",
482 $this->ctrl->getLinkTarget($this,
"view"), array(
"",
"view"), get_class($this));
488 $tabs_gui->addTarget(
"perm_settings",
489 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"),
"",
"ilpermissiongui");
492 if ($tree->getSavedNodeData($this->object->getRefId()))
494 $tabs_gui->addTarget(
"trash",
495 $this->ctrl->getLinkTarget($this,
"trash"),
"trash", get_class($this));
514 if (is_array($a_actions))
516 foreach ($a_actions as $name =>
$lng)
518 $this->actions[$name] = array(
"name" => $name,
"lng" =>
$lng);
535 if (is_array($a_sub_objects))
537 foreach ($a_sub_objects as $name => $options)
539 $this->sub_objects[$name] = array(
"name" => $name,
"max" => $options[
"max"]);
544 $this->sub_objects =
"";
558 global $ilLocator,
$tpl;
560 if ($this->omit_locator)
566 if($this->call_by_reference)
573 : $this->object->getRefId();
574 $ilLocator->addRepositoryItems(
$ref_id);
577 if(!$this->creation_mode)
583 if (
$_GET[
"admin_mode"] ==
"" &&
584 strtolower($this->ctrl->getCmdClass()) ==
"ilobjrolegui")
586 $this->ctrl->setParameterByClass(
"ilobjrolegui",
587 "rolf_ref_id",
$_GET[
"rolf_ref_id"]);
588 $this->ctrl->setParameterByClass(
"ilobjrolegui",
589 "obj_id",
$_GET[
"obj_id"]);
590 $ilLocator->addItem($this->lng->txt(
"role"),
591 $this->ctrl->getLinkTargetByClass(array(
"ilpermissiongui",
592 "ilobjrolegui"),
"perm"));
608 $this->omit_locator = $a_omit;
619 if (
$_GET[
"admin_mode"] ==
"settings")
621 $this->ctrl->setParameterByClass(
"iladministrationgui",
622 "ref_id", SYSTEM_FOLDER_ID);
623 $ilLocator->addItem($this->lng->txt(
"administration"),
624 $this->ctrl->getLinkTargetByClass(
"iladministrationgui",
"frameset"),
626 if ($this->object->getRefId() != SYSTEM_FOLDER_ID)
628 $ilLocator->addItem($this->object->getTitle(),
629 $this->ctrl->getLinkTarget($this,
"view"));
631 $this->ctrl->setParameterByClass(
"iladministrationgui",
632 "ref_id", $this->object->getRefId());
636 $this->ctrl->setParameterByClass(
"iladministrationgui",
638 $this->ctrl->setParameterByClass(
"iladministrationgui",
639 "admin_mode",
"settings");
643 $this->ctrl->clearParametersByClass(
"iladministrationgui");
644 $ilLocator->addAdministrationItems();
657 if(isset(
$_POST[
"mref_id"]))
662 include_once(
"./Services/Repository/classes/class.ilRepUtilGUI.php");
666 $this->ctrl->returnToParent($this);
677 $this->ctrl->returnToParent($this);
689 $this->ctrl->returnToParent($this);
705 $this->ctrl->saveParameter($this,
"crtptrefid");
707 $this->ctrl->saveParameter($this,
"crtcb");
711 $ilErr->raiseError($this->lng->txt(
"permission_denied"),$ilErr->MESSAGE);
715 $this->lng->loadLanguageModule($new_type);
716 $this->ctrl->setParameter($this,
"new_type", $new_type);
721 if(
$_GET[
"cpfl"] && isset($forms[self::CFORM_CLONE]))
723 $forms = array(self::CFORM_CLONE => $forms[self::CFORM_CLONE]);
759 foreach($a_forms as $id => $form)
763 unset($a_forms[$id]);
768 if(
sizeof($a_forms) == 1)
770 $a_forms = array_shift($a_forms);
771 return $a_forms->getHTML();
775 include_once(
"./Services/Accordion/classes/class.ilAccordionGUI.php");
780 foreach ($a_forms as $form_type => $cf)
782 $htpl =
new ilTemplate(
"tpl.creation_acc_head.html",
true,
true,
"Services/Object");
787 if(method_exists($this,
"getCreationFormTitle"))
789 $form_title = $this->getCreationFormTitle($form_type);
793 $form_title = $cf->getTitle();
797 $htpl->setVariable(
"TITLE", $this->lng->txt(
"option").
" ".$cnt.
": ".
800 $cf->setTitleIcon(null);
801 $cf->setTableWidth(
"100%");
803 $acc->addItem($htpl->get(), $cf->getHTML());
808 return "<div class='ilCreationFormSection'>".$acc->getHTML().
"</div>";
820 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
822 $form->setTarget(
"_top");
823 $form->setFormAction($this->ctrl->getFormAction($this,
"save"));
824 $form->setTitle($this->lng->txt($a_new_type.
"_new"));
830 $ti->setRequired(
true);
841 $form->addCommandButton(
"save", $this->lng->txt($a_new_type.
"_add"));
842 $form->addCommandButton(
"cancel", $this->lng->txt(
"cancel"));
856 $lng->loadLanguageModule(
'didactic');
859 $options[
'dtpl_0'] = array($this->lng->txt(
'didactic_default_type'),
861 $this->lng->txt(
'didactic_default_type_info'),
862 $this->lng->txt(
'objs_'.$this->type)
865 include_once
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateSettings.php';
869 foreach($templates as $template)
871 $options[
"dtpl_".$template->getId()] = array($template->getTitle(),
872 $template->getDescription());
878 if(
sizeof($options) > 1)
881 $this->lng->txt(
'type'),
887 include_once
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateObjSettings.php';
894 $type->setValue(
'dtpl_0');
899 foreach($options as $id =>
$data)
902 $type->addOption($option);
926 $ilCtrl->redirectByClass(
"ilrepositorygui",
"frameset");
943 $this->ilias->raiseError($this->lng->txt(
"no_create_permission"), $this->ilias->error_obj->MESSAGE);
946 $this->lng->loadLanguageModule($new_type);
947 $this->ctrl->setParameter($this,
"new_type", $new_type);
950 if ($form->checkInput())
952 $this->ctrl->setParameter($this,
"new_type",
"");
955 $class_name =
"ilObj".$objDefinition->getClassName($new_type);
956 $location = $objDefinition->getLocation($new_type);
957 include_once(
$location.
"/class.".$class_name.
".php");
958 $newObj =
new $class_name();
959 $newObj->setType($new_type);
960 $newObj->setTitle($form->getInput(
"title"));
961 $newObj->setDescription($form->getInput(
"desc"));
970 $newObj->applyDidacticTemplate($dtpl);
974 $args = func_get_args();
987 $form->setValuesByPost();
988 $tpl->setContent($form->getHtml());
1000 if(
$tpl && substr(
$tpl, 0, strlen($a_type)+1) == $a_type.
"_")
1002 return (
int)substr(
$tpl, strlen($a_type)+1);
1016 if(!$a_parent_node_id)
1018 $a_parent_node_id =
$_GET[
"ref_id"];
1024 $a_parent_node_id = (int)$_REQUEST[
"crtptrefid"];
1031 $this->obj_id = $a_obj->
getId();
1032 $this->ref_id = $a_obj->
getRefId();
1035 require_once(
'Services/Tracking/classes/class.ilChangeEvent.php');
1040 include_once
"Services/AccessControl/classes/class.ilRbacLog.php";
1041 $rbac_log_roles = $rbacreview->getParentRoleIds($this->ref_id,
false);
1046 if($_REQUEST[
"crtcb"])
1049 $class_name =
"ilObj".$objDefinition->getClassName($callback_type).
"GUI";
1050 $location = $objDefinition->getLocation($callback_type);
1051 include_once(
$location.
"/class.".$class_name.
".php");
1052 if (in_array(strtolower($class_name), array(
"ilobjitemgroupgui")))
1054 $callback_obj =
new $class_name((
int)$_REQUEST[
"crtcb"]);
1059 $callback_obj =
new $class_name(null, (
int)$_REQUEST[
"crtcb"],
true,
false);
1061 $callback_obj->afterSaveCallback($a_obj);
1073 $this->ctrl->returnToParent($this);
1083 global
$tpl, $ilTabs;
1087 $this->ilias->raiseError($this->lng->txt(
"msg_no_perm_write"),$this->ilias->error_obj->MESSAGE);
1090 $ilTabs->activateTab(
"settings");
1096 $form->setValuesByArray($values);
1098 $tpl->setContent($form->getHTML());
1110 $lng->loadLanguageModule($this->object->getType());
1112 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1114 $form->setFormAction($this->ctrl->getFormAction($this,
"update"));
1115 $form->setTitle($this->lng->txt($this->object->getType().
"_edit"));
1121 $ti->setRequired(
true);
1122 $form->addItem($ti);
1128 $form->addItem($ta);
1132 $form->addCommandButton(
"update", $this->lng->txt(
"save"));
1155 $values[
"title"] = $this->
object->getTitle();
1156 $values[
"desc"] = $this->
object->getLongDescription();
1176 global $ilTabs,
$tpl;
1180 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1184 if($form->checkInput())
1186 $this->
object->setTitle($form->getInput(
"title"));
1187 $this->
object->setDescription($form->getInput(
"desc"));
1189 $this->
object->update();
1196 $ilTabs->activateTab(
"settings");
1197 $form->setValuesByPost();
1198 $tpl->setContent($form->getHtml());
1217 $this->ctrl->redirect($this,
"edit");
1228 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1230 $form->setTarget(
"_top");
1231 $form->setFormAction($this->ctrl->getFormAction($this,
"importFile"));
1232 $form->setTitle($this->lng->txt($a_new_type.
"_import"));
1234 include_once(
"./Services/Form/classes/class.ilFileInputGUI.php");
1235 $fi =
new ilFileInputGUI($this->lng->txt(
"import_file"),
"importfile");
1237 $fi->setRequired(
true);
1238 $form->addItem($fi);
1240 $form->addCommandButton(
"importFile", $this->lng->txt(
"import"));
1241 $form->addCommandButton(
"cancel", $this->lng->txt(
"cancel"));
1255 $parent_id =
$_GET[
"ref_id"];
1262 $ilErr->raiseError($this->lng->txt(
"no_create_permission"));
1265 $this->lng->loadLanguageModule($new_type);
1266 $this->ctrl->setParameter($this,
"new_type", $new_type);
1269 if ($form->checkInput())
1273 if($objDefinition->isContainer($new_type))
1275 include_once
'./Services/Export/classes/class.ilImportContainer.php';
1280 include_once(
"./Services/Export/classes/class.ilImport.php");
1281 $imp =
new ilImport((
int)$parent_id);
1284 $new_id = $imp->importObject(null, $_FILES[
"importfile"][
"tmp_name"],
1285 $_FILES[
"importfile"][
"name"], $new_type);
1289 $this->ctrl->setParameter($this,
"new_type",
"");
1294 if(!$objDefinition->isContainer($new_type))
1304 if($objDefinition->isContainer($new_type))
1317 $form->setValuesByPost();
1318 $tpl->setContent($form->getHtml());
1329 $this->ctrl->returnToParent($this);
1342 if ($this->formaction[$a_cmd] !=
"")
1344 return $this->formaction[$a_cmd];
1348 return $a_formaction;
1362 $this->formaction[$a_cmd] = $a_formaction;
1374 if ($this->return_location[$a_cmd] !=
"")
1376 return $this->return_location[$a_cmd];
1394 $this->return_location[$a_cmd] = $a_location;
1406 if ($this->target_frame[$a_cmd] !=
"")
1408 return $this->target_frame[$a_cmd];
1410 elseif (!empty($a_target_frame))
1412 return "target=\"".$a_target_frame.
"\"";
1429 $this->target_frame[$a_cmd] =
"target=\"".$a_target_frame.
"\"";
1437 $ilBench->start(
"Explorer",
"setOutput_isVisible");
1440 if ($visible && $a_type ==
'crs') {
1442 if($crs_id = $tree->checkForParentType($a_ref_id,
'crs'))
1449 if(!$tmp_obj->isActivated())
1454 if(($crs_id != $a_ref_id) and $tmp_obj->isArchived())
1462 $ilBench->stop(
"Explorer",
"setOutput_isVisible");
1479 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1483 require_once(
'Services/Tracking/classes/class.ilChangeEvent.php');
1486 $this->object->getType(),
1487 $this->
object->getRefId(),
1488 $this->
object->getId(), $ilUser->getId());
1491 include_once(
"./Services/Repository/classes/class.ilAdminSubItemsTableGUI.php");
1492 if (!$this->call_by_reference)
1494 $this->ctrl->setParameter($this,
"obj_id", $this->obj_id);
1498 $tpl->setContent($itab->getHTML());
1512 if (
$_GET[
"item_ref_id"] !=
"")
1517 if(is_array(
$_POST[
"id"]))
1519 foreach(
$_POST[
"id"] as $idx => $id)
1521 $_POST[
"id"][$idx] = (int)$id;
1528 include_once(
"./Services/Repository/classes/class.ilRepUtilGUI.php");
1530 if (!$ru->showDeleteConfirmation(
$_POST[
"id"], $a_error))
1532 $ilCtrl->returnToParent($this);
1543 if ($this->sub_objects ==
"")
1545 $d = $this->objDefinition->getCreatableSubObjects($this->object->getType());
1560 if ($row[
"max"] > 0)
1563 for ($i=0; $i<count($this->data[
"ctrl"]); $i++)
1565 if ($this->data[
"ctrl"][$i][
"type"] == $row[
"name"])
1572 if ($row[
"max"] ==
"" || $count < $row[
"max"])
1574 $subobj[] = $row[
"name"];
1579 if (is_array($subobj))
1584 $this->tpl->setCurrentBlock(
"add_object");
1585 $this->tpl->setVariable(
"SELECT_OBJTYPE", $opts);
1586 $this->tpl->setVariable(
"BTN_NAME",
"create");
1587 $this->tpl->setVariable(
"TXT_ADD", $this->lng->txt(
"add"));
1588 $this->tpl->parseCurrentBlock();
1602 mk(); die(
"ilObjectGUI::getTemplateFile() is deprecated.");
1615 foreach ($a_ref_ids as $id)
1618 $tmp_obj =& $this->ilias->obj_factory->getInstanceByRefId($id);
1619 $title[] = $tmp_obj->getTitle();
1644 $ilToolbar->addButton($a_text, $this->ctrl->getLinkTarget($this, $a_cmd), $a_target);
1656 include_once
"./Services/Table/classes/class.ilTableGUI.php";
1670 case "clipboardObject":
1671 $offset =
$_GET[
"offset"];
1672 $order =
$_GET[
"sort_by"];
1673 $direction =
$_GET[
"sort_order"];
1674 $tbl->disable(
"footer");
1678 $offset =
$_GET[
"offset"];
1679 $order =
$_GET[
"sort_by"];
1680 $direction =
$_GET[
"sort_order"];
1684 $tbl->setOrderColumn($order);
1685 $tbl->setOrderDirection($direction);
1686 $tbl->setOffset($offset);
1687 $tbl->setLimit(
$_GET[
"limit"]);
1688 $tbl->setFooter(
"tblfooter",$this->lng->txt(
"previous"),$this->lng->txt(
"next"));
1689 $tbl->setData($result_set);
1697 $tpl =& $tbl->getTemplateObject();
1699 $tpl->setCurrentBlock(
"tbl_form_header");
1700 $tpl->setVariable(
"FORMACTION", $ilCtrl->getFormAction($this));
1701 $tpl->parseCurrentBlock();
1703 $tpl->setCurrentBlock(
"tbl_action_btn");
1704 $tpl->setVariable(
"BTN_NAME",
"paste");
1705 $tpl->setVariable(
"BTN_VALUE",$this->lng->txt(
"insert_object_here"));
1706 $tpl->parseCurrentBlock();
1708 $tpl->setCurrentBlock(
"tbl_action_btn");
1709 $tpl->setVariable(
"BTN_NAME",
"clear");
1710 $tpl->setVariable(
"BTN_VALUE",$this->lng->txt(
"clear_clipboard"));
1711 $tpl->parseCurrentBlock();
1713 $tpl->setCurrentBlock(
"tbl_action_row");
1714 $tpl->setVariable(
"COLUMN_COUNTS",3);
1716 $tpl->parseCurrentBlock();
1718 $tbl->setTitle($this->lng->txt(
"clipboard"),
"icon_typ_b.png",$this->lng->txt(
"clipboard"));
1719 $tbl->setHeaderNames(array($this->lng->txt(
'obj_type'),
1720 $this->lng->txt(
'title'),
1721 $this->lng->txt(
'action')));
1722 $tbl->setHeaderVars(array(
'type',
1725 array(
'ref_id' => $this->object->getRefId(),
1726 'cmd' =>
'clipboard',
1727 'cmdClass' =>
$_GET[
'cmdClass'],
1728 'cmdNode' =>
$_GET[
'cmdNode']));
1730 $tbl->setColumnWidth(array(
"",
"80%",
"19%"));
1736 $this->tpl->setVariable(
"RESULT_TABLE",$tbl->tpl->get());
1753 $class_name = $this->objDefinition->getClassName($obj_type);
1754 $class = strtolower(
"ilObj".$class_name.
"GUI");
1755 $this->ctrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $a_ref_id);
1756 $this->ctrl->redirectByClass(array(
"ilrepositorygui", $class), $a_cmd);
1771 include_once
'./Services/Object/classes/class.ilObjectCopyGUI.php';
1773 $cp->setType($a_type);
1774 $cp->setTarget(
$_GET[
'ref_id']);
1777 $cp->showSourceSearch($a_tpl_varname);
1781 return $cp->showSourceSearch(null);
1793 include_once(
'./Services/Link/classes/class.ilLink.php');
1794 include_once(
'Services/CopyWizard/classes/class.ilCopyWizardOptions.php');
1801 $ilErr->raiseError($this->lng->txt(
'permission_denied'));
1811 $ilErr->raiseError($this->lng->txt(
'permission_denied'));
1817 $wizard_options->saveOwner($ilUser->getId());
1818 $wizard_options->saveRoot((
int) $_REQUEST[
'clone_source']);
1820 $options =
$_POST[
'cp_options'] ?
$_POST[
'cp_options'] : array();
1821 foreach($options as $source_id => $option)
1823 $wizard_options->addEntry($source_id,$option);
1825 $wizard_options->read();
1828 $new_obj = $orig->cloneObject((
int)
$_GET[
'ref_id'],$copy_id);
1831 $wizard_options->deleteAll();
1845 include_once(
"Services/Block/classes/class.ilColumnGUI.php");
1850 if ($ilCtrl->getNextClass() !=
"ilcolumngui")
1853 return $this->getContent();
1857 if (!$ilCtrl->isAsynch())
1867 $this->html = $ilCtrl->forwardCommand($column_gui);
1874 $this->html = $ilCtrl->forwardCommand($column_gui);
1880 return $this->getContent();
1896 include_once(
"Services/Block/classes/class.ilColumnGUI.php");
1906 if ($ilCtrl->getNextClass() ==
"ilcolumngui" &&
1910 $html = $ilCtrl->forwardCommand($column_gui);
1914 if (!$ilCtrl->isAsynch())
1916 $html = $ilCtrl->getHTML($column_gui);
1928 $column_gui->setRepositoryMode(
true);
1929 $column_gui->setEnableEdit(
false);
1932 $column_gui->setEnableEdit(
true);
1949 if (!is_int(strpos($_SERVER[
"PHP_SELF"],
"goto.php")))
1952 if($a_perm ==
"create")
1956 $a_ref_id =
$_GET[
"ref_id"];
1963 if (!is_object($this->
object))
1969 $a_ref_id = $this->
object->getRefId();
1971 $type = $this->
object->getType();
1981 die(
"Permission Denied.");
1999 if($a_perm ==
"create")
2003 $a_ref_id =
$_GET[
"ref_id"];
2005 return $ilAccess->checkAccess($a_perm.
"_".$a_type, $a_cmd, $a_ref_id);
2010 if (!is_object($this->
object))
2016 $a_ref_id = $this->
object->getRefId();
2018 return $ilAccess->checkAccess($a_perm, $a_cmd, $a_ref_id);
2030 global $ilAccess,
$ilErr;
2032 if ($ilAccess->checkAccess(
"read",
"", ROOT_FOLDER_ID))
2034 $_GET[
"cmd"] =
"frameset";
2035 $_GET[
"target"] =
"";
2036 $_GET[
"ref_id"] = ROOT_FOLDER_ID;
2037 $_GET[
"baseClass"] =
"ilRepositoryGUI";
2038 include(
"ilias.php");
2044 $ilErr->raiseError(
$lng->txt(
"msg_no_perm_read"), $ilErr->FATAL);
2056 global $ilAccess,
$ilErr;
2058 $_GET[
"cmd"] = $a_cmd;
2059 $_GET[
"target"] =
"";
2060 $_GET[
"ref_id"] = $a_ref_id;
2061 $_GET[
"baseClass"] =
"ilRepositoryGUI";
2062 include(
"ilias.php");