4 require_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"];
39 if (!parent::update()) {
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);
65 $new_feed_block->setContextObjId($new_obj->getId());
66 $new_feed_block->setContextObjType(
"feed");
69 $new_feed_block->setFeedUrl($fb->getFeedUrl());
70 $new_feed_block->setTitle($fb->getTitle());
72 $new_feed_block->create();
83 public function delete()
86 if (!parent::delete()) {
93 include_once(
"./Services/Block/classes/class.ilCustomBlock.php");
95 $costum_block->setContextObjId($this->
getId());
96 $costum_block->setContextObjType($this->
getType());
97 $c_blocks = $costum_block->queryBlocksForContext();
99 foreach ($c_blocks as $c_block) {
100 if ($c_block[
"type"] ==
"feed") {
103 include_once(
"./Services/Block/classes/class.ilBlockSetting.php");
118 include_once(
"./Services/Block/classes/class.ilCustomBlock.php");
120 $costum_block->setContextObjId($this->
getId());
121 $costum_block->setContextObjType($this->
getType());
122 $c_blocks = $costum_block->queryBlocksForContext();
124 foreach ($c_blocks as $c_block) {
125 if ($c_block[
"type"] ==
"feed") {
Custom block for external feeds.
getId()
get object id public
static _deleteSettingsOfBlock($a_block_id, $a_block_type)
Delete block settings of block.
cloneObject($a_target_id, $a_copy_id=0, $a_omit_tree=false)
Clone.
getType()
get object type public
This is the super class of all custom blocks.
update()
update object data
__construct(Container $dic, ilPlugin $plugin)
__construct($a_id=0, $a_call_by_reference=true)
Constructor public.