4 require_once
"./classes/class.ilObjectGUI.php";
24 $this->
ilObjectGUI($a_data,$a_id,$a_call_by_reference,$a_prepare_output);
32 $next_class = $this->ctrl->getNextClass($this);
36 case 'ilpermissiongui':
38 $ilTabs->activateTab(
"id_permissions");
39 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
41 $ret =& $this->ctrl->forwardCommand($perm_gui);
44 case "ilexternalfeedblockgui":
46 $ilTabs->activateTab(
"id_settings");
47 include_once(
"./Services/Block/classes/class.ilExternalFeedBlockGUI.php");
49 $fb_gui->setGuiObject($this);
50 if (is_object($this->
object))
52 $fb_gui->setRefId($this->object->getRefId());
54 $ret =& $this->ctrl->forwardCommand($fb_gui);
55 $tpl->setContent(
$ret);
60 $ilTabs->activateTab(
"export");
61 include_once(
"./Services/Export/classes/class.ilExportGUI.php");
63 $exp_gui->addFormat(
"xml");
64 $ret = $this->ctrl->forwardCommand($exp_gui);
69 $cmd = $this->ctrl->getCmd(
"view");
84 $ilCtrl->setCmdClass(
"ilexternalfeedblockgui");
85 $ilCtrl->setCmd(
"create");
93 function save($a_feed_block)
97 $_POST[
"title"] = $a_feed_block->getTitle();
98 $_POST[
"desc"] = $a_feed_block->getFeedUrl();
105 $a_feed_block = $a_feed_block[0];
107 $a_feed_block->setContextObjId($a_new_object->
getId());
108 $a_feed_block->setContextObjType(
"feed");
121 $this->ctrl->returnToParent($this);
130 $_POST[
"title"] = $a_feed_block->getTitle();
131 $_POST[
"desc"] = $a_feed_block->getFeedUrl();
143 $par = $tree->getParentId(
$_GET[
"ref_id"]);
144 $_GET[
"ref_id"] = $par;
156 $par = $tree->getParentId(
$_GET[
"ref_id"]);
157 $_GET[
"ref_id"] = $par;
169 if (in_array($ilCtrl->getCmd(), array(
"create",
"saveFeedBlock")))
174 $ilCtrl->setParameterByClass(
"ilexternalfeedblockgui",
"external_feed_block_id",
175 $_GET[
"external_feed_block_id"]);
176 $ilCtrl->saveParameter($this,
"external_feed_block_id");
178 if ($ilAccess->checkAccess(
'write',
'', $this->object->getRefId()))
180 $ilTabs->addTab(
"id_settings",
181 $lng->txt(
"settings"),
182 $this->ctrl->getLinkTargetByClass(
"ilexternalfeedblockgui",
"editFeedBlock"));
186 if ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId()) && DEVMODE == 1)
188 $ilTabs->addTab(
"export",
190 $this->ctrl->getLinkTargetByClass(
"ilexportgui",
""));
194 if($ilAccess->checkAccess(
'edit_permission',
'', $this->object->getRefId()))
196 $ilTabs->addTab(
"id_permissions",
197 $lng->txt(
"perm_settings"),
198 $this->ctrl->getLinkTargetByClass(
"ilpermissiongui",
"perm"));