24 require_once(
"./Services/COPage/classes/class.ilPageContent.php");
54 $this->blog_node =& $a_node->first_child();
63 function create(&$a_pg_obj, $a_hier_id, $a_pc_id =
"")
67 $this->blog_node = $this->dom->create_element(
"Blog");
68 $this->blog_node = $this->node->append_child($this->blog_node);
77 function setData($a_blog_id, array $a_posting_ids = null)
81 $this->blog_node->set_attribute(
"Id", $a_blog_id);
82 $this->blog_node->set_attribute(
"User", $ilUser->getId());
85 $children = $this->blog_node->child_nodes();
88 foreach($children as $child)
90 $this->blog_node->remove_child($child);
94 if(
sizeof($a_posting_ids))
96 foreach($a_posting_ids as $posting_id)
98 $post_node = $this->dom->create_element(
"BlogPosting");
99 $post_node = $this->blog_node->append_child($post_node);
100 $post_node->set_attribute(
"Id", $posting_id);
112 if (is_object($this->blog_node))
114 return $this->blog_node->get_attribute(
"Id");
126 if (is_object($this->blog_node))
128 $children = $this->blog_node->child_nodes();
131 foreach($children as $child)
133 $res[] = $child->get_attribute(
"Id");