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();
99 parent::saveObject($a_feed_block);
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();
132 parent::updateObject();
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"));
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
ilObjExternalFeedGUI($a_data, $a_id, $a_call_by_reference, $a_prepare_output=true)
Constructor public.
Class ilObject Basic functions for all objects.
ilObjectGUI($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
Constructor public.
update($a_feed_block)
update object public
Export User Interface Class.
afterSave(ilObject $a_new_object, $a_feed_block)
getId()
get object id public
cancelUpdate()
Cancel update.
Class ilObjectGUI Basic methods of all Output classes.
save($a_feed_block)
save object public
prepareOutput()
prepare output
afterUpdate()
After update.
BlockGUI class for external feed block.
redirectToRefId($a_ref_id, $a_cmd="")
redirects to (repository) view per ref id usually to a container and usually used at the end of a sav...
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
Class ilObjExternalFeedGUI.