ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilPDCalendarBlockGUI.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5include_once("Services/Calendar/classes/class.ilCalendarBlockGUI.php");
6
21{
22 public static $block_type = "pdcal";
23
27 public function __construct()
28 {
30 $this->setBlockId(0);
31 }
32
33
37 public function getBlockType() : string
38 {
39 return self::$block_type;
40 }
41
49 protected function initCategories()
50 {
51 include_once './Services/Calendar/classes/class.ilCalendarUserSettings.php';
52 if (!$this->initialized) {
55 } else {
57 }
58
60 if ($this->getForceMonthView()) {
61 // nothing to do here
62 }
63 elseif (!$cats->getMode()) {
64 $cats->initialize($this->mode, (int) $_GET['ref_id'], true);
65 }
66 }
67 $this->initialized = true;
68 }
69
73 public function returnToUpperContext()
74 {
75 global $DIC;
76
77 $ilCtrl = $DIC['ilCtrl'];
78
79 $ilCtrl->redirectByClass("ildashboardgui", "show");
80 }
81}
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
setBlockId($a_block_id=0)
Set Block Id.
Calendar blocks, displayed in different contexts, e.g.
getForceMonthView()
Get force month view.
static _getInstance($a_usr_id=0)
get singleton instance
static _getInstance()
get instance for logged in user
Calendar blocks, displayed on personal desktop.
returnToUpperContext()
Return to upper context.
global $DIC
Definition: goto.php:24
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc