ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 {
29 parent::__construct(true);
30 $this->allow_moving = true;
31 $this->setBlockId(0);
32 // fix 21445
33 $this->handleDetailLevel();
34 }
35
39 //TODO execute command.
40 /*
41 function executeCommand()
42 {
43 global $DIC;
44
45 $ilCtrl = $DIC['ilCtrl'];
46
47 $next_class = $ilCtrl->getNextClass();
48
49 switch ($next_class)
50 {
51 case "ilcalendarappointmentpresentationgui":
52 include_once('./Services/Calendar/classes/class.ilCalendarAppointmentPresentationGUI.php');
53 $presentation = ilCalendarAppointmentPresentationGUI::_getInstance($this->seed, $this->appointment);
54 $ilCtrl->forwardCommand($presentation);
55 break;
56 }
57 }*/
58
62 public function getBlockType() : string
63 {
64 return self::$block_type;
65 }
66
74 protected function initCategories()
75 {
76 include_once './Services/Calendar/classes/class.ilCalendarUserSettings.php';
79 } else {
81 }
82
84 if ($this->getForceMonthView()) {
85 // nothing to do here
86 }
87 elseif (!$cats->getMode()) {
88 $cats->initialize($this->mode, (int) $_GET['ref_id'], true);
89 }
90 }
91
95 public function returnToUpperContext()
96 {
97 global $DIC;
98
99 $ilCtrl = $DIC['ilCtrl'];
100
101 $ilCtrl->redirectByClass("ilpersonaldesktopgui", "show");
102 }
103}
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
setBlockId($a_block_id=0)
Set Block Id.
handleDetailLevel()
Handle read/write current detail level.
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 $ilCtrl
Definition: ilias.php:18
global $DIC
Definition: saml.php:7