4 require_once
"./Services/Object/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")))
173 $ilHelp->setScreenIdComponent(
"feed");
175 $ilCtrl->setParameterByClass(
"ilexternalfeedblockgui",
"external_feed_block_id",
176 $_GET[
"external_feed_block_id"]);
177 $ilCtrl->saveParameter($this,
"external_feed_block_id");
179 if ($ilAccess->checkAccess(
'write',
'', $this->object->getRefId()))
181 $ilTabs->addTab(
"id_settings",
182 $lng->txt(
"settings"),
183 $this->ctrl->getLinkTargetByClass(
"ilexternalfeedblockgui",
"editFeedBlock"));
187 if ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId()) && DEVMODE == 1)
189 $ilTabs->addTab(
"export",
191 $this->ctrl->getLinkTargetByClass(
"ilexportgui",
""));
195 if($ilAccess->checkAccess(
'edit_permission',
'', $this->object->getRefId()))
197 $ilTabs->addTab(
"id_permissions",
198 $lng->txt(
"perm_settings"),
199 $this->ctrl->getLinkTargetByClass(
"ilpermissiongui",
"perm"));
203 public static function _goto($a_target)
207 $id = explode(
"_", $a_target);
211 $container_id = $tree->getParentId(
$ref_id);
214 include_once
"Services/Link/classes/class.ilLink.php";