24 require_once(
"./Services/COPage/classes/class.ilPageContent.php");
50 $this->
user = $DIC->user();
59 parent::setNode($a_node);
60 $this->blog_node = $a_node->first_child();
69 public function create(&$a_pg_obj, $a_hier_id, $a_pc_id =
"")
73 $this->blog_node = $this->dom->create_element(
"Blog");
74 $this->blog_node = $this->node->append_child($this->blog_node);
83 public function setData($a_blog_id, array $a_posting_ids = null)
87 $this->blog_node->set_attribute(
"Id", $a_blog_id);
88 $this->blog_node->set_attribute(
"User",
$ilUser->getId());
91 $children = $this->blog_node->child_nodes();
93 foreach ($children as $child) {
94 $this->blog_node->remove_child($child);
98 if (
sizeof($a_posting_ids)) {
99 foreach ($a_posting_ids as $posting_id) {
100 $post_node = $this->dom->create_element(
"BlogPosting");
101 $post_node = $this->blog_node->append_child($post_node);
102 $post_node->set_attribute(
"Id", $posting_id);
114 if (is_object($this->blog_node)) {
115 return $this->blog_node->get_attribute(
"Id");
127 if (is_object($this->blog_node)) {
128 $children = $this->blog_node->child_nodes();
130 foreach ($children as $child) {
131 $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.
foreach($_POST as $key=> $value) $res
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.