30 public function init(): void
34 $this->
user = $DIC->user();
40 parent::setNode($a_node);
51 $this->blog_node = $this->dom->create_element(
"Blog");
52 $this->blog_node = $this->node->append_child($this->blog_node);
60 array $a_posting_ids = null
64 $this->blog_node->set_attribute(
"Id", $a_blog_id);
65 $this->blog_node->set_attribute(
"User",
$ilUser->getId());
68 $children = $this->blog_node->child_nodes();
70 foreach ($children as $child) {
71 $this->blog_node->remove_child($child);
75 if (count($a_posting_ids)) {
76 foreach ($a_posting_ids as $posting_id) {
77 $post_node = $this->dom->create_element(
"BlogPosting");
78 $post_node = $this->blog_node->append_child($post_node);
79 $post_node->set_attribute(
"Id", $posting_id);
86 if (is_object($this->blog_node)) {
87 return (
int) $this->blog_node->get_attribute(
"Id");
98 if (is_object($this->blog_node)) {
99 $children = $this->blog_node->child_nodes();
101 foreach ($children as $child) {
102 $res[] = (
int) $child->get_attribute(
"Id");
setType(string $a_type)
Set Type.
php4DOMElement $blog_node
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
create(ilPageObject $a_pg_obj, string $a_hier_id, string $a_pc_id="")
insertContent(ilPageContent $a_cont_obj, string $a_pos, int $a_mode=IL_INSERT_AFTER, string $a_pcid="", bool $remove_placeholder=true)
insert a content node before/after a sibling or as first child of a parent
setNode(php4DOMElement $a_node)
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)
createPageContentNode(bool $a_set_this_node=true)
Create page content node (always use this method first when adding a new element) ...
getPostings()
Get blog postings.
setData(int $a_blog_id, array $a_posting_ids=null)
Set blog settings.