24 require_once
"./classes/class.ilObjectGUI.php";
44 $this->
ilObjectGUI($a_data,$a_id,$a_call_by_reference,$a_prepare_output);
50 global $rbacsystem,
$tpl;
52 $next_class = $this->ctrl->getNextClass($this);
56 case 'ilpermissiongui':
58 include_once(
"./classes/class.ilPermissionGUI.php");
60 $ret =& $this->ctrl->forwardCommand($perm_gui);
63 case "ilexternalfeedblockgui":
65 include_once(
"./Services/Block/classes/class.ilExternalFeedBlockGUI.php");
67 $fb_gui->setGuiObject($this);
68 if (is_object($this->
object))
70 $fb_gui->setRefId($this->object->getRefId());
72 $ret =& $this->ctrl->forwardCommand($fb_gui);
73 $tpl->setContent(
$ret);
77 $cmd = $this->ctrl->getCmd(
"view");
92 $ilCtrl->setCmdClass(
"ilexternalfeedblockgui");
93 $ilCtrl->setCmd(
"create");
103 global $rbacadmin, $ilUser;
106 $_GET[
"new_type"] =
"feed";
107 $_POST[
"Fobject"][
"title"] = $a_feed_block->getTitle();
108 $_POST[
"Fobject"][
"desc"] = $a_feed_block->getFeedUrl();
110 $newObj->setOwner($ilUser->getId());
111 $newObj->updateOwner();
112 $a_feed_block->setContextObjId($newObj->getId());
113 $a_feed_block->setContextObjType(
"feed");
133 $this->ctrl->returnToParent($this);
145 $_POST[
"Fobject"][
"title"] = $a_feed_block->getTitle();
146 $_POST[
"Fobject"][
"desc"] = $a_feed_block->getFeedUrl();
161 $par = $tree->getParentId(
$_GET[
"ref_id"]);
162 $_GET[
"ref_id"] = $par;
177 $par = $tree->getParentId(
$_GET[
"ref_id"]);
178 $_GET[
"ref_id"] = $par;
192 if (in_array($ilCtrl->getCmd(), array(
"create",
"saveFeedBlock")))
197 $ilCtrl->setParameterByClass(
"ilexternalfeedblockgui",
"external_feed_block_id",
198 $_GET[
"external_feed_block_id"]);
199 $ilCtrl->saveParameter($this,
"external_feed_block_id");
201 if ($rbacsystem->checkAccess(
'write', $this->object->getRefId()))
203 $force_active = (
$_GET[
"cmd"] ==
"edit" ||
204 $this->ctrl->getNextClass() ==
"ilexternalfeedblockgui")
207 $tabs_gui->addTarget(
"edit_properties",
208 $this->ctrl->getLinkTargetByClass(
"ilexternalfeedblockgui",
"editFeedBlock"),
209 "edit", get_class($this),
213 if($rbacsystem->checkAccess(
'edit_permission',$this->object->getRefId()))
215 $tabs_gui->addTarget(
"perm_settings",
216 $this->ctrl->getLinkTargetByClass(
"ilpermissiongui",
"perm"),
"",
"ilpermissiongui");