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));
221 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
223 $this->form->setTarget(
"_top");
226 include_once(
"./Services/Form/classes/class.ilFileInputGUI.php");
229 $this->form->addItem($fi);
231 $this->form->addCommandButton(
"importFile", $lng->txt(
"import"));
232 $this->form->addCommandButton(
"cancelCreation", $lng->txt(
"cancel"));
233 $this->form->setTitle($lng->txt(
"import"));
235 $this->form->setFormAction($ilCtrl->getFormAction($this));
248 $ilCtrl->initBaseClass(
"ilObjPluginDispatchGUI");
249 $ilCtrl->setTargetScript(
"ilias.php");
250 $ilCtrl->getCallStructure(strtolower(
"ilObjPluginDispatchGUI"));
257 $ilCtrl->setParameterByClass(get_class($this),
"ref_id", $newObj->getRefId());
258 $ilCtrl->redirectByClass(array(
"ilobjplugindispatchgui", get_class($this)), $this->
getAfterCreationCmd());
275 global $ilAccess, $ilTabs;
278 if ($ilAccess->checkAccess(
'visible',
"", $this->object->getRefId()))
280 $ilTabs->addTarget(
"info_short",
281 $this->ctrl->getLinkTargetByClass(
282 "ilinfoscreengui",
"showSummary"),
292 global $ilAccess, $ilTabs,
$ilCtrl;
295 if($ilAccess->checkAccess(
'edit_permission',
"", $this->object->getRefId()))
297 $ilTabs->addTarget(
"perm_settings",
298 $ilCtrl->getLinkTargetByClass(
"ilpermissiongui",
"perm"),
299 array(
"perm",
"info",
"owner"),
'ilpermissiongui');
311 $ilTabs->setTabActive(
"info_short");
315 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
317 $info->enablePrivateNotes();
320 $lng->loadLanguageModule(
"meta");
325 $ret = $ilCtrl->forwardCommand($info);
343 $t = explode(
"_", $a_target[0]);
345 $class_name = $a_target[1];
347 if ($ilAccess->checkAccess(
"read",
"",
$ref_id))
349 $ilCtrl->initBaseClass(
"ilObjPluginDispatchGUI");
350 $ilCtrl->setTargetScript(
"ilias.php");
351 $ilCtrl->getCallStructure(strtolower(
"ilObjPluginDispatchGUI"));
352 $ilCtrl->setParameterByClass($class_name,
"ref_id",
$ref_id);
353 $ilCtrl->redirectByClass(array(
"ilobjplugindispatchgui", $class_name),
"");
355 else if($ilAccess->checkAccess(
"visible",
"",
$ref_id))
357 $ilCtrl->initBaseClass(
"ilObjPluginDispatchGUI");
358 $ilCtrl->setTargetScript(
"ilias.php");
359 $ilCtrl->getCallStructure(strtolower(
"ilObjPluginDispatchGUI"));
360 $ilCtrl->setParameterByClass($class_name,
"ref_id",
$ref_id);
361 $ilCtrl->redirectByClass(array(
"ilobjplugindispatchgui", $class_name),
"infoScreen");
363 else if ($ilAccess->checkAccess(
"read",
"", ROOT_FOLDER_ID))
365 $_GET[
"cmd"] =
"frameset";
366 $_GET[
"target"] =
"";
367 $_GET[
"ref_id"] = ROOT_FOLDER_ID;
370 include(
"repository.php");