24 require_once(
"./Services/COPage/classes/class.ilPageContent.php");
53 parent::setNode($a_node);
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);
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");
getBlogId()
Get blog mode.
create(&$a_pg_obj, $a_hier_id, $a_pc_id="")
Create blog node in xml.
setType($a_type)
Set Type.
init()
Init page content component.
Create styles array
The data for the language used.
getPostings()
Get blog postings.
createPageContentNode($a_set_this_node=true)
Create page content node (always use this method first when adding a new element) ...
setData($a_blog_id, array $a_posting_ids=null)
Set blog settings.
setNode($a_node)
Set node.