39         $this->tpl = $DIC[
"tpl"];
    40         $this->
ctrl = $DIC->ctrl();
    41         $this->
user = $DIC->user();
    42         $this->
lng = $DIC->language();
    46         $this->requested_blog_id = $this->request->getInt(
"blog_id");
    47         $this->requested_blog = $this->request->getInt(
"blog");
    56         $next_class = $this->
ctrl->getNextClass($this);
    59         $cmd = $this->
ctrl->getCmd();
    61         switch ($next_class) {
   100         $form->setFormAction($ilCtrl->getFormAction($this));
   102             $form->setTitle($this->
lng->txt(
"cont_insert_blog"));
   104             $form->setTitle($this->
lng->txt(
"cont_update_blog"));
   110             foreach ($blogs_ids as $blog_id) {
   117         $obj->setOptions($options);
   118         $form->addItem($obj);
   121             $form->addCommandButton(
"create_blog", $this->
lng->txt(
"select"));
   122             $form->addCommandButton(
"cancelCreate", $this->
lng->txt(
"cancel"));
   124             $obj->setValue($this->content_obj->getBlogId());
   125             $form->addCommandButton(
"update", $this->
lng->txt(
"select"));
   126             $form->addCommandButton(
"cancelUpdate", $this->
lng->txt(
"cancel"));
   137         if ($this->requested_blog_id == 0) {
   139             if ($form->checkInput()) {
   144             $form->setValuesByPost();
   148             if ($form->checkInput()) {
   150                 $this->content_obj->create($this->pg_obj, $this->hier_id, $this->pc_id);
   151                 $this->content_obj->setData($form->getInput(
"blog_id"), $form->getInput(
"posting"));
   152                 $this->updated = $this->pg_obj->update();
   153                 if ($this->updated === 
true) {
   154                     $this->
ctrl->returnToParent($this, 
"jump" . $this->hier_id);
   158             $form->setValuesByPost();
   168         if ($this->requested_blog_id == 0) {
   170             if ($form->checkInput()) {
   175             $this->pg_obj->addHierIDs();
   176             $form->setValuesByPost();
   180             if ($form->checkInput()) {
   181                 $this->content_obj->setData($form->getInput(
"blog_id"), $form->getInput(
"posting"));
   182                 $this->updated = $this->pg_obj->update();
   183                 if ($this->updated === 
true) {
   184                     $this->
ctrl->returnToParent($this, 
"jump" . $this->hier_id);
   188             $this->pg_obj->addHierIDs();
   189             $form->setValuesByPost();
   190             $this->
editPosting($this->requested_blog_id, $form);
   234         bool $a_insert = 
false   240         $form->setFormAction($ilCtrl->getFormAction($this));
   242             $form->setTitle($this->
lng->txt(
"cont_insert_blog"));
   244             $form->setTitle($this->
lng->txt(
"cont_update_blog"));
   250             foreach ($postings as 
$post) {
   252                 if ($post[
"author"] == $ilUser->getId()) {
   254                     $title = $post[
"title"] . 
" - " .
   258                     $cbox->setValue($post[
"id"]);
   267         $obj->setOptions($options);
   268         $form->addItem($obj);
   271         $blog_id->setValue($a_blog_id);
   272         $form->addItem($blog_id);
   275             $form->addCommandButton(
"create_blog", $this->
lng->txt(
"save"));
   276             $form->addCommandButton(
"cancelCreate", $this->
lng->txt(
"cancel"));
   278             $obj->setValue($this->content_obj->getPostings());
   279             $form->addCommandButton(
"update", $this->
lng->txt(
"save"));
   280             $form->addCommandButton(
"cancelUpdate", $this->
lng->txt(
"cancel"));
 
static searchBlogsByAuthor(int $a_user_id)
Get all blogs where user has postings. 
 
static getAllPostings(int $a_blog_id, int $a_limit=1000, int $a_offset=0)
Get all postings of blog. 
 
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
 
edit(ilPropertyFormGUI $a_form=null)
 
Content object of ilPageObject (see ILIAS DTD). 
 
Class ilPCBlog Blog content object (see ILIAS DTD) 
 
insertPosting(int $a_blog_id, ilPropertyFormGUI $a_form=null)
Insert new blog posting form. 
 
User Interface for Editing of Page Content Objects (Paragraphs, Tables, ...) 
 
initPostingForm(int $a_blog_id, bool $a_insert=false)
Init blog posting form. 
 
executeCommand()
execute command 
 
static _lookupTitle(int $obj_id)
 
setContent(string $a_html)
Sets content for standard template. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
insert(ilPropertyFormGUI $a_form=null)
 
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD) 
 
ilGlobalTemplateInterface $tpl
 
editPosting(int $a_blog_id, ilPropertyFormGUI $a_form=null)
Edit blog posting form. 
 
__construct(ilPageObject $a_pg_obj, ?ilPageContent $a_content_obj, string $a_hier_id, string $a_pc_id="")
 
initForm(bool $a_insert=false)