4require_once 
"./Services/Object/classes/class.ilObject.php";
 
   24                $this->
ilObject($a_id,$a_call_by_reference);
 
   35                if (!parent::update())
 
   57                $new_obj = parent::cloneObject($a_target_id,$a_copy_id);
 
   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")
 
  153        function notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params = 0)
 
  193                if ($a_node_id==
$_GET[
"ref_id"])
 
  195                        $parent_obj =& $this->
ilias->obj_factory->getInstanceByRefId($a_node_id);
 
  196                        $parent_type = $parent_obj->getType();
 
  197                        if($parent_type == $this->
getType())
 
  199                                $a_node_id = (int) $tree->getParentId($a_node_id);
 
  203                parent::notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params);
 
static _deleteSettingsOfBlock($a_block_id, $a_block_type)
Delete block settings of block.
This is the super class of all custom blocks.
Custom block for external feeds.
ilObjExternalFeed($a_id=0, $a_call_by_reference=true)
Constructor @access public.
update()
update object data
cloneObject($a_target_id, $a_copy_id=0)
Clone.
notify($a_event, $a_ref_id, $a_parent_non_rbac_id, $a_node_id, $a_params=0)
notifys an object about an event occured Based on the event happend, each object may decide how it re...
Class ilObject Basic functions for all objects.
getType()
get object type @access public
ilObject($a_id=0, $a_reference=true)
Constructor @access public.
getId()
get object id @access public
redirection script todo: (a better solution should control the processing via a xml file)