24 require_once
"./classes/class.ilObject.php";
44 $this->
ilObject($a_id,$a_call_by_reference);
55 if (!parent::update())
80 include_once(
"./Services/Block/classes/class.ilExternalFeedBlock.php");
82 $new_feed_block->setContextObjId($new_obj->getId());
83 $new_feed_block->setContextObjType(
"feed");
87 $new_feed_block->setFeedUrl($fb->getFeedUrl());
88 $new_feed_block->setTitle($fb->getTitle());
90 $new_feed_block->create();
104 if (!parent::delete())
112 include_once(
"./Services/Block/classes/class.ilCustomBlock.php");
114 $costum_block->setContextObjId($this->
getId());
115 $costum_block->setContextObjType($this->
getType());
116 $c_blocks = $costum_block->queryBlocksForContext();
118 include_once(
"./Services/Block/classes/class.ilExternalFeedBlock.php");
119 foreach($c_blocks as $c_block)
121 if ($c_block[
"type"] ==
"feed")
125 include_once(
"./Services/Block/classes/class.ilBlockSetting.php");
140 include_once(
"./Services/Block/classes/class.ilCustomBlock.php");
142 $costum_block->setContextObjId($this->
getId());
143 $costum_block->setContextObjType($this->
getType());
144 $c_blocks = $costum_block->queryBlocksForContext();
146 include_once(
"./Services/Block/classes/class.ilExternalFeedBlock.php");
147 foreach($c_blocks as $c_block)
149 if ($c_block[
"type"] ==
"feed")
182 return $roles ? $roles : array();
198 function notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params = 0)
238 if ($a_node_id==
$_GET[
"ref_id"])
240 $parent_obj =& $this->ilias->obj_factory->getInstanceByRefId($a_node_id);
241 $parent_type = $parent_obj->getType();
242 if($parent_type == $this->
getType())
244 $a_node_id = (int) $tree->getParentId($a_node_id);
248 parent::notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params);