4 require_once
"./Services/Object/classes/class.ilObjectGUI.php";
21 function __construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output =
true)
24 parent::__construct($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)
96 $_REQUEST[
"new_type"] =
"feed";
97 $_POST[
"title"] = $a_feed_block->getTitle();
98 $_POST[
"desc"] = $a_feed_block->getFeedUrl();
99 parent::saveObject($a_feed_block);
104 if ($a_feed_block != null)
107 $a_feed_block = $a_feed_block[0];
109 $a_feed_block->setContextObjId($a_new_object->
getId());
110 $a_feed_block->setContextObjType(
"feed");
124 $this->ctrl->returnToParent($this);
133 $_POST[
"title"] = $a_feed_block->getTitle();
134 $_POST[
"desc"] = $a_feed_block->getFeedUrl();
135 parent::updateObject();
146 $par = $tree->getParentId(
$_GET[
"ref_id"]);
147 $_GET[
"ref_id"] = $par;
159 $par = $tree->getParentId(
$_GET[
"ref_id"]);
160 $_GET[
"ref_id"] = $par;
172 if (in_array($ilCtrl->getCmd(),
array(
"create",
"saveFeedBlock")))
176 $ilHelp->setScreenIdComponent(
"feed");
178 $ilCtrl->setParameterByClass(
"ilexternalfeedblockgui",
"external_feed_block_id",
179 $_GET[
"external_feed_block_id"]);
180 $ilCtrl->saveParameter($this,
"external_feed_block_id");
182 if ($ilAccess->checkAccess(
'write',
'', $this->object->getRefId()))
184 $ilTabs->addTab(
"id_settings",
185 $lng->txt(
"settings"),
186 $this->ctrl->getLinkTargetByClass(
"ilexternalfeedblockgui",
"editFeedBlock"));
190 if ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId()) && DEVMODE == 1)
192 $ilTabs->addTab(
"export",
194 $this->ctrl->getLinkTargetByClass(
"ilexportgui",
""));
198 if($ilAccess->checkAccess(
'edit_permission',
'', $this->object->getRefId()))
200 $ilTabs->addTab(
"id_permissions",
201 $lng->txt(
"perm_settings"),
202 $this->ctrl->getLinkTargetByClass(
"ilpermissiongui",
"perm"));
206 public static function _goto($a_target)
210 $id = explode(
"_", $a_target);
214 $container_id = $tree->getParentId(
$ref_id);
217 include_once
"Services/Link/classes/class.ilLink.php";
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
Class ilObject Basic functions for all objects.
update($a_feed_block)
update object public
afterSave(ilObject $a_new_object, $a_feed_block=null)
Export User Interface Class.
prepareOutput($a_show_subobjects=true)
prepare output
getId()
get object id public
cancelUpdate()
Cancel update.
Class ilObjectGUI Basic methods of all Output classes.
save($a_feed_block)
save object public
Create styles array
The data for the language used.
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...
Create new PHPExcel object
obj_idprivate
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output=true)
Constructor public.
Class ilObjExternalFeedGUI.
static redirect($a_script)
http redirect to other script
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")