4 include_once(
"./Services/Object/classes/class.ilObject2GUI.php");
5 include_once(
"./Services/Component/classes/class.ilPlugin.php");
25 if (!is_object($this->plugin))
27 die(
"ilObjectPluginGUI: Could not instantiate plugin object for type ".$this->
getType().
".");
39 $tpl->getStandardTemplate();
44 $tpl->setTitle($this->object->getTitle());
45 $tpl->setTitleIcon($this->plugin->getImagePath(
"icon_".$this->object->getType().
"_b.gif"),
46 $lng->txt(
"icon").
" ".$this->
txt(
"obj_".$this->object->getType()));
49 if (strtolower(
$_GET[
"baseClass"]) !=
"iladministrationgui")
62 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
64 $ilNavigationHistory->addItem(
$_GET[
"ref_id"],
65 $ilCtrl->getLinkTarget($this, $this->getStandardCmd()), $this->
getType());
75 $lng->txt(
"obj_".ilObject::_lookupType(
$_GET[
"ref_id"],
true)));
80 $next_class = $this->ctrl->getNextClass($this);
81 $cmd = $this->ctrl->getCmd();
85 case "ilinfoscreengui":
90 case 'ilpermissiongui':
91 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
93 $ilTabs->setTabActive(
"perm_settings");
94 $ret = $ilCtrl->forwardCommand($perm_gui);
98 if (strtolower(
$_GET[
"baseClass"]) ==
"iladministrationgui")
107 if (
$cmd ==
"infoScreen")
109 $ilCtrl->setCmd(
"showSummary");
110 $ilCtrl->setCmdClass(
"ilinfoscreengui");
142 $ilLocator->addItem($this->object->getTitle(),
157 return $this->plugin;
163 final protected function txt($a_var)
177 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
179 $this->form->setTarget(
"_top");
185 $ti->setRequired(
true);
186 $this->form->addItem($ti);
192 $this->form->addItem($ta);
195 if ($a_mode ==
"create")
197 $this->form->addCommandButton(
"save", $this->
txt($a_new_type.
"_add"));
198 $this->form->addCommandButton(
"cancelCreation", $lng->txt(
"cancel"));
199 $this->form->setTitle($this->
txt($a_new_type.
"_new"));
203 $this->form->addCommandButton(
"update", $lng->txt(
"save"));
204 $this->form->addCommandButton(
"cancelUpdate", $lng->txt(
"cancel"));
205 $this->form->setTitle($lng->txt(
"edit"));
208 $this->form->setFormAction($ilCtrl->getFormAction($this));
222 $ilCtrl->initBaseClass(
"ilObjPluginDispatchGUI");
223 $ilCtrl->setTargetScript(
"ilias.php");
224 $ilCtrl->getCallStructure(strtolower(
"ilObjPluginDispatchGUI"));
231 $ilCtrl->setParameterByClass(get_class($this),
"ref_id", $newObj->getRefId());
232 $ilCtrl->redirectByClass(array(
"ilobjplugindispatchgui", get_class($this)), $this->
getAfterCreationCmd());
249 global $ilAccess, $ilTabs;
252 if ($ilAccess->checkAccess(
'visible',
"", $this->object->getRefId()))
254 $ilTabs->addTarget(
"info_short",
255 $this->ctrl->getLinkTargetByClass(
256 "ilinfoscreengui",
"showSummary"),
266 global $ilAccess, $ilTabs,
$ilCtrl;
269 if($ilAccess->checkAccess(
'edit_permission',
"", $this->object->getRefId()))
271 $ilTabs->addTarget(
"perm_settings",
272 $ilCtrl->getLinkTargetByClass(
"ilpermissiongui",
"perm"),
273 array(
"perm",
"info",
"owner"),
'ilpermissiongui');
285 $ilTabs->setTabActive(
"info_short");
289 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
291 $info->enablePrivateNotes();
294 $lng->loadLanguageModule(
"meta");
299 $ret = $ilCtrl->forwardCommand($info);
317 $t = explode(
"_", $a_target[0]);
319 $class_name = $a_target[1];
321 if ($ilAccess->checkAccess(
"read",
"",
$ref_id))
323 $ilCtrl->initBaseClass(
"ilObjPluginDispatchGUI");
324 $ilCtrl->setTargetScript(
"ilias.php");
325 $ilCtrl->getCallStructure(strtolower(
"ilObjPluginDispatchGUI"));
326 $ilCtrl->setParameterByClass($class_name,
"ref_id",
$ref_id);
327 $ilCtrl->redirectByClass(array(
"ilobjplugindispatchgui", $class_name),
"");
329 else if($ilAccess->checkAccess(
"visible",
"",
$ref_id))
331 $ilCtrl->initBaseClass(
"ilObjPluginDispatchGUI");
332 $ilCtrl->setTargetScript(
"ilias.php");
333 $ilCtrl->getCallStructure(strtolower(
"ilObjPluginDispatchGUI"));
334 $ilCtrl->setParameterByClass($class_name,
"ref_id",
$ref_id);
335 $ilCtrl->redirectByClass(array(
"ilobjplugindispatchgui", $class_name),
"infoScreen");
337 else if ($ilAccess->checkAccess(
"read",
"", ROOT_FOLDER_ID))
339 $_GET[
"cmd"] =
"frameset";
340 $_GET[
"target"] =
"";
341 $_GET[
"ref_id"] = ROOT_FOLDER_ID;
344 include(
"repository.php");