ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilPDCalendarBlockGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
31{
32 public static string $block_type = "pdcal";
33 protected bool $initialized = false;
34
38 public function __construct()
39 {
41 $this->setBlockId('0');
42 }
43
47 public function getBlockType(): string
48 {
49 return self::$block_type;
50 }
51
55 protected function initCategories(): void
56 {
57 if (!$this->initialized) {
60 } else {
62 }
63
65 if ($this->getForceMonthView()) {
66 // nothing to do here
67 } elseif (!$cats->getMode()) {
68 $cats->initialize($this->mode, (int) $this->requested_ref_id, true);
69 }
70 }
71 $this->initialized = true;
72 }
73
77 public function returnToUpperContext(): void
78 {
79 $this->ctrl->redirectByClass("ildashboardgui", "show");
80 }
81}
setBlockId(string $a_block_id="0")
Calendar blocks, displayed in different contexts, e.g.
static _getInstance($a_usr_id=0)
get singleton instance
Calendar blocks, displayed on personal desktop.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc