4 require_once
"./classes/class.ilObject.php";
24 $this->
ilObject($a_id,$a_call_by_reference);
35 if (!parent::update())
60 include_once(
"./Services/Block/classes/class.ilExternalFeedBlock.php");
62 $new_feed_block->setContextObjId($new_obj->getId());
63 $new_feed_block->setContextObjType(
"feed");
67 $new_feed_block->setFeedUrl($fb->getFeedUrl());
68 $new_feed_block->setTitle($fb->getTitle());
70 $new_feed_block->create();
84 if (!parent::delete())
92 include_once(
"./Services/Block/classes/class.ilCustomBlock.php");
94 $costum_block->setContextObjId($this->
getId());
95 $costum_block->setContextObjType($this->
getType());
96 $c_blocks = $costum_block->queryBlocksForContext();
98 include_once(
"./Services/Block/classes/class.ilExternalFeedBlock.php");
99 foreach($c_blocks as $c_block)
101 if ($c_block[
"type"] ==
"feed")
105 include_once(
"./Services/Block/classes/class.ilBlockSetting.php");
120 include_once(
"./Services/Block/classes/class.ilCustomBlock.php");
122 $costum_block->setContextObjId($this->
getId());
123 $costum_block->setContextObjType($this->
getType());
124 $c_blocks = $costum_block->queryBlocksForContext();
126 include_once(
"./Services/Block/classes/class.ilExternalFeedBlock.php");
127 foreach($c_blocks as $c_block)
129 if ($c_block[
"type"] ==
"feed")
162 return $roles ? $roles : array();
178 function notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params = 0)
218 if ($a_node_id==
$_GET[
"ref_id"])
220 $parent_obj =& $this->ilias->obj_factory->getInstanceByRefId($a_node_id);
221 $parent_type = $parent_obj->getType();
222 if($parent_type == $this->
getType())
224 $a_node_id = (int) $tree->getParentId($a_node_id);
228 parent::notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params);