4require_once 
"./Services/Object/classes/class.ilObject.php";
 
   21    public function __construct($a_id = 0, $a_call_by_reference = 
true)
 
   25        $this->db = 
$DIC->database();
 
   26        $this->log = 
$DIC[
"ilLog"];
 
   28        parent::__construct($a_id, $a_call_by_reference);
 
   56    public function cloneObject($a_target_id, $a_copy_id = 0, $a_omit_tree = 
false)
 
   61        $new_obj = parent::cloneObject($a_target_id, $a_copy_id, $a_omit_tree);
 
   64        include_once(
"./Services/Block/classes/class.ilExternalFeedBlock.php");
 
   66        $new_feed_block->setContextObjId($new_obj->getId());
 
   67        $new_feed_block->setContextObjType(
"feed");
 
   70            $new_feed_block->setFeedUrl($fb->getFeedUrl());
 
   71            $new_feed_block->setTitle($fb->getTitle());
 
   73        $new_feed_block->create();
 
   84    public function delete()
 
   87        if (!parent::delete()) {
 
   94        include_once(
"./Services/Block/classes/class.ilCustomBlock.php");
 
   96        $costum_block->setContextObjId($this->
getId());
 
   97        $costum_block->setContextObjType($this->
getType());
 
   98        $c_blocks = $costum_block->queryBlocksForContext();
 
  100        include_once(
"./Services/Block/classes/class.ilExternalFeedBlock.php");
 
  101        foreach ($c_blocks as $c_block) {               
 
  102            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) {               
 
  128            if ($c_block[
"type"] == 
"feed") {
 
An exception for terminatinating execution or to throw for unit testing.
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.
__construct($a_id=0, $a_call_by_reference=true)
Constructor @access public.
update()
update object data
cloneObject($a_target_id, $a_copy_id=0, $a_omit_tree=false)
Clone.
Class ilObject Basic functions for all objects.
getType()
get object type @access public
getId()
get object id @access public
update($pash, $contents, Config $config)