ILIAS  release_8 Revision v8.24
class.ilPDCalendarBlockGUI.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
5/* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
6
17{
18 public static string $block_type = "pdcal";
19 protected bool $initialized = false;
20
24 public function __construct()
25 {
27 $this->setBlockId('0');
28 }
29
33 public function getBlockType(): string
34 {
35 return self::$block_type;
36 }
37
41 protected function initCategories(): void
42 {
43 if (!$this->initialized) {
46 } else {
48 }
49
51 if ($this->getForceMonthView()) {
52 // nothing to do here
53 } elseif (!$cats->getMode()) {
54 $cats->initialize($this->mode, (int) $this->requested_ref_id, true);
55 }
56 }
57 $this->initialized = true;
58 }
59
63 public function returnToUpperContext(): void
64 {
65 $this->ctrl->redirectByClass("ildashboardgui", "show");
66 }
67}
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