5 include_once(
"./Services/Object/classes/class.ilObject2GUI.php");
6 include_once(
"./Modules/ItemGroup/classes/class.ilObjItemGroup.php");
29 $lng->loadLanguageModule(
"itgr");
31 $this->ctrl->saveParameter($this, array(
"ref_id"));
49 $next_class = $this->ctrl->getNextClass($this);
50 $cmd = $this->ctrl->getCmd();
54 case 'ilinfoscreengui':
60 case 'ilpermissiongui':
62 $ilTabs->activateTab(
"perm_settings");
64 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
66 $ret = $this->ctrl->forwardCommand($perm_gui);
69 case "ilcommonactiondispatchergui":
70 include_once(
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
72 $this->ctrl->forwardCommand($gui);
76 $cmd = $this->ctrl->getCmd(
"listMaterials");
92 global $ilLocator, $ilAccess;
94 if (is_object($this->
object) && $ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
96 $ilLocator->addItem($this->object->getTitle(), $this->ctrl->getLinkTarget($this,
"listMaterials"),
"",
$_GET[
"ref_id"]);
102 $forms = array(self::CFORM_NEW => $this->
initCreateForm($a_new_type)
116 $ilCtrl->redirect($this,
"listMaterials");
132 $ilTabs->activateTab(
"materials");
134 $parent_ref_id = $tree->getParentId($this->object->getRefId());
136 include_once
"Services/Object/classes/class.ilObjectAddNewItemGUI.php";
138 $gui->setDisabledObjectTypes(array(
"itgr",
"sess"));
139 $gui->setAfterCreationCallback($this->object->getRefId());
142 include_once(
"./Modules/ItemGroup/classes/class.ilItemGroupItemsTableGUI.php");
144 $tpl->setContent(
$tab->getHTML());
156 include_once
'./Modules/ItemGroup/classes/class.ilItemGroupItems.php';
159 $items = is_array(
$_POST[
'items'])
163 $item_group_items->setItems($items);
164 $item_group_items->update();
167 $ilCtrl->redirect($this,
"listMaterials");
176 $this->tpl->getStandardTemplate();
187 $ilHelp->setScreenIdComponent(
"itgr");
189 $parent_ref_id = $tree->getParentId($this->object->getRefId());
193 include_once(
"./Services/Link/classes/class.ilLink.php");
194 $ilTabs->setBackTarget(
195 $lng->txt(
'obj_'.$parent_type),
198 if ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
200 $ilTabs->addTab(
'materials',
201 $lng->txt(
'itgr_materials'),
202 $this->ctrl->getLinkTarget($this,
'listMaterials'));
204 $ilTabs->addTab(
'settings',
205 $lng->txt(
'settings'),
206 $this->ctrl->getLinkTarget($this,
'edit'));
209 if ($ilAccess->checkAccess(
"edit_permission",
"", $this->object->getRefId()))
211 $ilTabs->addTab(
"perm_settings",
212 $lng->txt(
'perm_settings'),
213 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm")
226 $targets = explode(
'_',$a_target);
228 $par_id = $tree->getParentId(
$ref_id);
230 if ($ilAccess->checkAccess(
"read",
"", $par_id))
232 include_once(
"./Services/Link/classes/class.ilLink.php");
236 else if ($ilAccess->checkAccess(
"read",
"", ROOT_FOLDER_ID))
243 $ilErr->raiseError($lng->txt(
"msg_no_perm_read"), $ilErr->FATAL);
253 $ref_id = $this->
object->getRefId();
254 $par_id = $tree->getParentId(
$ref_id);
256 if ($ilAccess->checkAccess(
"read",
"", $par_id))
258 include_once(
"./Services/Link/classes/class.ilLink.php");
272 include_once
'./Modules/ItemGroup/classes/class.ilItemGroupItems.php';