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(
"Services/AccessControl/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();
159 $par = $tree->getParentId(
$_GET[
"ref_id"]);
160 $_GET[
"ref_id"] = $par;
175 $par = $tree->getParentId(
$_GET[
"ref_id"]);
176 $_GET[
"ref_id"] = $par;
190 if (in_array($ilCtrl->getCmd(), array(
"create",
"saveFeedBlock")))
195 $ilCtrl->setParameterByClass(
"ilexternalfeedblockgui",
"external_feed_block_id",
196 $_GET[
"external_feed_block_id"]);
197 $ilCtrl->saveParameter($this,
"external_feed_block_id");
199 if ($rbacsystem->checkAccess(
'write', $this->object->getRefId()))
201 $force_active = (
$_GET[
"cmd"] ==
"edit" ||
202 $this->ctrl->getNextClass() ==
"ilexternalfeedblockgui")
205 $tabs_gui->addTarget(
"edit_properties",
206 $this->ctrl->getLinkTargetByClass(
"ilexternalfeedblockgui",
"editFeedBlock"),
207 "edit", get_class($this),
211 if($rbacsystem->checkAccess(
'edit_permission',$this->object->getRefId()))
213 $tabs_gui->addTarget(
"perm_settings",
214 $this->ctrl->getLinkTargetByClass(
"ilpermissiongui",
"perm"),
"",
"ilpermissiongui");